hyperium / hyper

An HTTP library for Rust
https://hyper.rs
MIT License
14.07k stars 1.55k forks source link

feat(http1): add support for receiving trailer fields #3637

Closed hjr3 closed 1 month ago

hjr3 commented 2 months ago

Closes #2703

In https://github.com/hyperium/hyper/pull/3375 we were strict about sending trailers per RFC 7230. In this PR, I have been much more accepting of trailers. Is this the behavior we want?

Some questions:

hjr3 commented 1 month ago

@seanmonstar Please feel free to assign me any relevant issues. I already some blog posts on sending trailers:

I had planned on writing one for receiving trailers. I had a note to ask you if you wanted this sort of content in examples, the hyper.rs guides, etc.