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 b9a7c7f39c
commit 4e92286cde
+6
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.