From 88177610088d8174a81b8ac990eb0cb517cd300e Mon Sep 17 00:00:00 2001 From: Roman Volosatovs Date: Mon, 21 Mar 2022 13:02:49 +0100 Subject: [PATCH] feat(request): add `url_mut` method Signed-off-by: Roman Volosatovs --- src/request.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/request.rs b/src/request.rs index dcbd043b..3277af14 100644 --- a/src/request.rs +++ b/src/request.rs @@ -93,6 +93,12 @@ impl Request { 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