Support HTTP trailers
See original GitHub issueWe currently do not support HTTP/1.x or HTTP/2.0 trailers. HTTP trailers are basically additional headers sent after the body. https://discourse.mitmproxy.org/t/http-2-trailers-not-supported/557/2 mentions that gRPC is doing this, so this seems like a reasonable feature we should support. I think the rough implementation plan looks as follows:
- Add
HTTPFlow.trailers
attribute (which is ahttp.Headers
instance or None) - Modify HTTP/2.0 layer to support trailers. This is likely the most difficult part.
- Expose trailers in mitmdump (#4213)
- Expose trailers in mitmproxy
- Expose trailers in mitmweb
- Wait if anyone ever requests HTTP/1.0 trailer support.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:11
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Trailer - HTTP - MDN Web Docs - Mozilla
The Trailer response header allows the sender to include additional fields at the end of chunked messages in order to supply metadata that ......
Read more >Supercharging Server Timing with HTTP trailers - Fastly
And, as it turns out, the Server Timing spec specifically mentions support for HTTP trailers: The user-agent MAY process Server-Timing header ...
Read more >Little Known ASP.NET Core Features - HTTP Trailers
In every ASP.NET Core release, there are small features that nobody talks about. This post talks about one of such features - HTTP...
Read more >Do any browsers support trailers sent in chunked encoding ...
No common browsers support HTTP/1.1 trailers. Look at the column "Headers in trailer" in the "Network" tab of browserscope.
Read more >Trailer HTTP Header: Syntax, Directive, Examples - Holistic SEO
The Trailer HTTP Header is a response header that indicates the presence of a specified set of header fields in the trailer of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Dear developer, is there any plan to support HTTP trailers? I also encountered this problem when trying to intercept grpc, very much hope that the development team solves this problem.
Yes - we’ve just merged our new proxy core, which currently does not support trailers yet. I’m sorry about the regression, but the benefits in other areas clearly outweigh this and we need to ship at some point. If anyone wants to give this a stab again, I’d be happy to help!The new proxy core now also handles trailers. 😃