mirror of
https://github.com/openharmony/third_party_rust_reqwest.git
synced 2026-07-20 01:03:35 -04:00
Add blocking::Response::headers_mut (#958)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user