Skip to content

Commit

Permalink
Add method to get mutable reference to HeaderMap of request builder (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto committed Mar 21, 2024
1 parent 3bd674b commit 97642fd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/request/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,11 @@ impl<B> RequestBuilder<B> {
self
}

/// Get a mutable reference to headers.
pub fn headers_mut(&mut self) -> &mut HeaderMap {
&mut self.base_settings.headers
}

/// Set the maximum number of redirections this request can perform.
///
/// The default is 5.
Expand Down

0 comments on commit 97642fd

Please sign in to comment.