[ 
https://issues.apache.org/jira/browse/HTTPCORE-792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18053986#comment-18053986
 ] 

Konrad Windszus commented on HTTPCORE-792:
------------------------------------------

I was using 4.5, I see now that that 5.6 added 
https://github.com/apache/httpcomponents-client/blob/b78c2ad55dcff4228911cef3184cca8a76ef5d4b/httpclient5/src/main/java/org/apache/hc/client5/http/entity/compress/CompressingEntity.java#L70
 while 4.5 only had 
https://github.com/apache/httpcomponents-client/blob/54900db4653d7f207477e6ee40135b88e9bcf832/httpclient/src/main/java/org/apache/http/client/entity/DecompressingEntity.java#L104
 which was always removing the content encoding.

> Expose compression algorithm (and transfer size) from HttpEntity
> ----------------------------------------------------------------
>
>                 Key: HTTPCORE-792
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-792
>             Project: HttpComponents HttpCore
>          Issue Type: Improvement
>          Components: HttpCore
>    Affects Versions: 5.4
>            Reporter: Konrad Windszus
>            Priority: Major
>
> HttpClient transparently decompressed certain compressed responses. However 
> there is no API to retrieve information about:
> - the compression algorithm used for the response
> - how many bytes were transferred
> Would be nice to make this information accessible via 
> {{org.apache.hc.core5.http.HttpEntity}} or from 
> https://github.com/apache/httpcomponents-client/blob/b78c2ad55dcff4228911cef3184cca8a76ef5d4b/httpclient5/src/main/java/org/apache/hc/client5/http/entity/compress/DecompressingEntity.java#L38.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to