hyperium / http-body

Asynchronous HTTP body trait
MIT License
129 stars 50 forks source link

util: add `BodyExt::with_trailers` #99

Closed davidpdrsn closed 11 months ago

davidpdrsn commented 11 months ago

Adds BodyExt::with_trailers so you can attach trailers to a body with a future that resolves to HeaderMap. I need this when porting tower-http to http-body 1.0 so figured it would make sense to upstream.