diff --git a/sdk/rust/src/http.rs b/sdk/rust/src/http.rs index e9ddebb540..845c3f55ea 100644 --- a/sdk/rust/src/http.rs +++ b/sdk/rust/src/http.rs @@ -253,6 +253,11 @@ impl Response { self.headers.iter().map(|(k, v)| (k.as_str(), v)) } + /// The request headers + pub fn headers_mut(&mut self) -> &mut HashMap { + &mut self.headers + } + /// Return a header value /// /// Will return `None` if the header does not exist.