http-rs / http-types

Common types for HTTP operations
https://docs.rs/http-types
Apache License 2.0
200 stars 83 forks source link

add Body::make_head and AsMut<Body> for Response #190

Closed jbr closed 4 years ago

jbr commented 4 years ago

When responding to a HEAD request, body content should not be sent. Currently there is no way to retain the content length, but remove the actual content.

This PR:

I'm not happy with the name make_head, so please suggest improvements

refs: http-rs/tide#623

jbr commented 4 years ago

Closing because async-h1 hangs indefinitely, so this needs to be addressed there