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?

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.


Back to the top