We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bb7c9b9 + 4e26646 commit 1cd8ea3Copy full SHA for 1cd8ea3
src/client/request.rs
@@ -33,7 +33,7 @@ impl<B> Request<B> {
33
/// Read the Request Uri.
34
#[inline]
35
pub fn uri(&self) -> &Uri { &self.uri }
36
-
+
37
/// Read the Request Version.
38
39
pub fn version(&self) -> HttpVersion { self.version }
@@ -46,6 +46,10 @@ impl<B> Request<B> {
46
47
pub fn method(&self) -> &Method { &self.method }
48
49
+ /// Read the Request body.
50
+ #[inline]
51
+ pub fn body(&self) -> Option<&B> { self.body.as_ref() }
52
53
/// Set the Method of this request.
54
55
pub fn set_method(&mut self, method: Method) { self.method = method; }
0 commit comments