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

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

I don't see any {{Content-Encoding}} header from the response returned by 
https://hc.apache.org/httpcomponents-client-4.5.x/current/httpclient/apidocs/org/apache/http/client/HttpClient.html#execute(org.apache.http.client.methods.HttpUriRequest),
 although my test server sends it and the entity is in fact 
{{org.apache.http.client.entity.DecompressingEntity}}. So to me it seems this 
header is deliberately removed from the returned headers (otherwise the 
consumer wouldn't be able to tell if the response is already umcompressed or 
not).

> 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