diff --git a/src/blocking/response.rs b/src/blocking/response.rs index 7f08cc5..c97f741 100644 --- a/src/blocking/response.rs +++ b/src/blocking/response.rs @@ -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.