Skip to content

Commit

Permalink
feat(request): add url_mut method
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Volosatovs <[email protected]>
  • Loading branch information
rvolosatovs committed Mar 21, 2022
1 parent 4ca2635 commit 8817761
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@ impl<State> Request<State> {
self.req.url()
}

/// Get a mutable reference to request's URI.
#[must_use]
pub fn url_mut(&mut self) -> &mut Url {
self.req.url_mut()
}

/// Access the request's HTTP version.
///
/// # Examples
Expand Down

0 comments on commit 8817761

Please sign in to comment.