question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support HTTP trailers

See original GitHub issue

We 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 a http.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:open
  • Created 6 years ago
  • Reactions:11
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
easyhutucommented, Nov 9, 2019

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.

0reactions
mhilscommented, Aug 23, 2021

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. 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found