Struct fibers_http_server::Req
[−]
[src]
pub struct Req<T> { /* fields omitted */ }
HTTP request.
Methods
impl<T> Req<T>
[src]
pub fn method(&self) -> &str
[src]
Returns the method of the request.
pub fn url(&self) -> &Url
[src]
Returns the URL of the request.
Note that the peer address of the client socket is used as the host and port of the URL.
pub fn version(&self) -> HttpVersion
[src]
Returns the HTTP version of the request.
pub fn header(&self) -> Header
[src]
Returns the header of the response.
ⓘImportant traits for &'a mut Wpub fn body(&self) -> &T
[src]
ⓘImportant traits for &'a mut W
Returns a reference to the body of the response.
pub fn into_body(self) -> T
[src]
Takes ownership of the request, and returns its body.
pub fn take_body(self) -> (Req<()>, T)
[src]
Splits the head part and the body part of the request.
Trait Implementations
impl<T: Debug> Debug for Req<T>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more