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:
provides an affordance to strip out the content of the body but retain the content length.
provides an AsMut<Body> for Response, which makes the use of make_head more convenient
I'm not happy with the name make_head, so please suggest improvements
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:
AsMut<Body>
for Response, which makes the use of make_head more convenientI'm not happy with the name
make_head
, so please suggest improvementsrefs: http-rs/tide#623