Support GZIP input and output
azell opened this issue · comments
Adam Zell commented
It should be possible to transparently support GZIP requests and responses. Requests can sniff the Content-Encoding header and wrap a GZIPInputStream over the request stream. Responses can configure the Jetty GZIP filter.
Ref: http://archive.eclipse.org/jetty/8.1.7.v20120910/apidocs/org/eclipse/jetty/servlets/GzipFilter.html.
I will start looking at a sample implementation.
Don Werve commented
I'd be willing to accept a pull request for a configurable options, but as Rack::Deflater
handles this on the Ruby side, I'd be worried about breaking existing Ruby apps.