Add blocking::Response::headers_mut (#958)

This commit is contained in:
David Pedersen
2020-06-24 16:19:15 +02:00
committed by GitHub
parent 71386d8734
commit 1c680005c2

View File

@@ -122,6 +122,12 @@ impl Response {
self.inner.headers()
}
/// Get a mutable reference to the `Headers` of this `Response`.
#[inline]
pub fn headers_mut(&mut self) -> &mut HeaderMap {
self.inner.headers_mut()
}
/// Retrieve the cookies contained in the response.
///
/// Note that invalid 'Set-Cookie' headers will be ignored.