Content coding support#704
Conversation
7dbbd2d to
71fc36c
Compare
@arturobernalg I made a mistake. Good catch. Please take another look. |
|
Funny that this popped up because I am new to using the HTTP5 library, and the HttpEntity.getContent() Javadoc does not say if you get back the encoded stream, or (better) a decoded stream. Does this PR implement a best effort for making HttpEntity.getContext() do the latter? If so, the Javadoc for that function should be clarified. |
@rpkrajewski The classic HttpClient has had support for the transparent content decompression for quite some time. Recently this support has also been added to the async HttpClient. As to whether an entity content is encoded this is determined by the |
|
Thanks - I will experiment more with this when 5.6 is out. |
Relatively minor code optimization that improves consistency of automatic content decompression by the classic and async transports. @arturobernalg Please double-check.