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
Handling Accept-Encoding request #331
Comments
Can you give me more details? Can you supply a code snippet to show me what you try to achieve? |
You can wrap the response's output stream in a response.contentType(...);
GzipOutputStream outputStream = new GzipOutputStream(response.getOutputStream());
// write to outputStream For some servlet containers (like Tomcat) you can obtain this feature automatically using configuration (a parameter). If my code snippet is OK for you, I can add a new method |
I think creating a method in |
Can you confirm that the above code snippet resolves your problem? |
My idea here is to supply an out of the box solution, something that is transparent for end user/developer and that could be implemented via HttpServletResponseWrapper or by introduction of a new |
Apologizes for the delayed response. The above snippet solved my problem. |
I think your idea is introduce |
Yes, something like that. The idea is to inject |
I think this would be awesome solution |
Use gzip compression where it's possible; see #331
I merged the PR that comes with an out of the box support for |
@decebals , routeContext.send(<some-content>);
routeContext.send(<some-content>); // this should give response committed error. Its not happening after gzip support |
@decebals, Is there any update on this?? |
I will try to test on demo application. |
I think that now, the code is OK. The idea is that you must finish the |
@decebals , I have tested new code..the issue is resolved |
How to handle
Accept-Encoding
header in request?Suppose
Accept-Encoding=gzip
then, response header should containContent-Encoding=gzip
.How to achieve this?
Just adding header to response wouldn't be sufficient. Is there way already available in
pippo
to handle this or custom implementation is required for this??The text was updated successfully, but these errors were encountered: