The DefaultHttpClient class sets up a lot of HttpResponseInterceptors,
but does not currently include ResponseContentEncoding which handles
Content-Encoding (e.g. gzip)

Seems like a strange omission.

Its subclass ContentEncodingHttpClient adds ResponseContentEncoding,
but also adds RequestAcceptEncoding which might not be wanted for all
requests.

For example, JMeter creates an HttpClient instance, and may or may not
add the Accept-Encoding header later. So it has to sub-class
DefaultHttpClient to add the handler.

Would there be any drawback to including ResponseContentEncoding in
DefaultHttpClient by default?

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to