We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce3dbd1 commit cee36d4Copy full SHA for cee36d4
src/client/request.rs
@@ -38,6 +38,14 @@ impl<'a> Request<'a> {
38
/// Get a mutable reference to the Request headers.
39
#[inline]
40
pub fn headers_mut(&mut self) -> &mut Headers { &mut self.head.headers }
41
+
42
+ /// Set the `RequestUri` of this request.
43
+ #[inline]
44
+ pub fn set_uri(&mut self, uri: RequestUri) { self.head.subject.1 = uri; }
45
46
+ /// Set the `HttpVersion` of this request.
47
48
+ pub fn set_version(&mut self, version: HttpVersion) { self.head.version = version; }
49
}
50
51
pub fn new(head: &mut RequestHead) -> Request {
0 commit comments