[ https://issues.apache.org/jira/browse/HTTPCLIENT-2263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17700875#comment-17700875 ]
Cole Greer commented on HTTPCLIENT-2263: ---------------------------------------- Thanks [~olegk] for the quick and kind reply. I believe the changes I'm asking for likely fall outside of what is currently allowed for the 4.5.x line as I want to add a new accessor to ResponseEntityProxy to get trailers. As far as I know, without such a change, the only workaround in 4.5.x is to use reflection to break encapsulation and directly access the underlying ChunkedInputStream. If you decide that these changes cannot be made to 4.5.x, I can continue using this workaround until I'm able to upgrade to 5.x. I've submitted a [PR|https://github.com/apache/httpcomponents-client/pull/425] with my proposed changes, please let me know if its within the acceptable scope of changes for 4.5.x. Thanks, Cole > Cannot Access Trailer-Headers in Chunked transfer-encoding > ---------------------------------------------------------- > > Key: HTTPCLIENT-2263 > URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2263 > Project: HttpComponents HttpClient > Issue Type: Bug > Components: HttpClient (classic) > Affects Versions: 4.5.14 > Reporter: Cole Greer > Priority: Major > Time Spent: 10m > Remaining Estimate: 0h > > This issue was previously identified and fixed > [here|https://issues.apache.org/jira/browse/HTTPCLIENT-1992] for HttpClient > version 5.0. To my knowledge this issue has been present since version 4.3 > when wrappers were added for response entities and content streams and access > to the underlying ChunkedInputStream was restricted. > My proposal is to backport the fix from HTTPCLIENT-1992 to 4.5.x and add a > getTrailers() method to ResponseEntityProxy. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@hc.apache.org For additional commands, e-mail: dev-h...@hc.apache.org