Closed fmurray-r7 closed 6 months ago
Nothing has changed since that thread. We still rely on httplib and httplib (or now http.client) does not support trailers for HTTP/1.1. i suspect some other http clients may be able to support this as they are built on h11 but whether they do or don't I couldn't tell you
Requests doesn't seem to support processing Trailer response headers. While I know that Trailer support has been discussed previously, some time has passed since then and I hope the issue can be reconsidered.
The desired use case is to add Trailer header to API responses but we cannot read them using the Request library. Other frameworks in other languages (Vert.x for example) support Trailers, but not Python Requests.
Expected Result
A Trailer response header has been added to a response, which is then read using Requests, the Trailer should be accessible.
Actual Result
There is no way to access the Trailer in the response using Requests.