-
-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Binary render type with byte array #407
Comments
I will investigate your request. If you have some ideas please let me know. |
I started to work on this feature. public interface ContentTypeEngine {
void init(Application application);
String getContentType();
<T> T readObject(Class<T> classOfT, Request request);
void writeObject(Object object, Response response);
} So, the old You should remark that in readObject and writeObject you have full access to Request and Response (maybe some implementations want to deal with headers). I see a single problem for now. Any idea, any advice or feedback is welcome. |
Any news on this, so far? EDIT: It's currently possible to avoid the issue by registering a custom content type || outputting to the HttpServletOutput directly |
@lvivtotoro |
It would be good if Pippo can render binary type using
byte[]
. I'm intend to use for rendering Protobuf. Currently is impossible becauseContentTypeEngine.toString(Object object)
only allow String type.The text was updated successfully, but these errors were encountered: