Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] how to disable automatic gzip decompression in jetty client?

I don't want http client to handle any chunk encoding because I want to write the bytes back to a servlet outoutstream so that browser can do chunk encoding processing. 


On Fri, Jan 10, 2014 at 3:12 PM, Simone Bordet <sbordet@xxxxxxxxxxx> wrote:
Hi,

On Fri, Jan 10, 2014 at 10:38 PM, Gaurav Kumar <gauravphoenix@xxxxxxxxx> wrote:
> I am using  Jetty client  v9.1.0.v20131115 and noticed that HttpClient
> automatically de-compresses gzip content. How can I disable this?

HttpClient.getContentDecoderFactories().clear();

> On a
> related note, I want to disable chunk encoding processing also and get
> access to raw bytes asynchronously

This is currently not possible if not by creating a custom transport
and eventually a HttpParser subclass.
May I ask you why you want to do that ?

--
Simone Bordet
----
http://cometd.org
http://webtide.com
http://intalio.com
Developer advice, training, services and support
from the Jetty & CometD experts.
Intalio, the modern way to build business applications.
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users


Back to the top