[
https://issues.apache.org/jira/browse/HTTPCORE-792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18053986#comment-18053986
] Konrad Windszus edited comment on HTTPCORE-792 at 1/23/26 6:48 PM: ------------------------------------------------------------------- I was using 4.5 (https://github.com/apache/httpcomponents-client/blob/54900db4653d7f207477e6ee40135b88e9bcf832/httpclient/src/main/java/org/apache/http/client/entity/DecompressingEntity.java#L104) but I think this hasn't been changed with 5.6 (https://github.com/apache/httpcomponents-client/blob/b78c2ad55dcff4228911cef3184cca8a76ef5d4b/httpclient5/src/main/java/org/apache/hc/client5/http/entity/compress/DecompressingEntity.java#L83). Also it says e.g. in https://github.com/apache/httpcomponents-client/blob/b78c2ad55dcff4228911cef3184cca8a76ef5d4b/httpclient5/src/main/java/org/apache/hc/client5/http/async/methods/InflatingZstdDataConsumer.java#L53 bq. the client removes the originalContent-Encoding and related headers was (Author: kwin): I was using 4.5 (https://github.com/apache/httpcomponents-client/blob/54900db4653d7f207477e6ee40135b88e9bcf832/httpclient/src/main/java/org/apache/http/client/entity/DecompressingEntity.java#L104) but I think this hasn't been changed with 5.6 (https://github.com/apache/httpcomponents-client/blob/b78c2ad55dcff4228911cef3184cca8a76ef5d4b/httpclient5/src/main/java/org/apache/hc/client5/http/entity/compress/DecompressingEntity.java#L83). > 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]
