Struct finchers::Request
[−]
[src]
pub struct Request { /* fields omitted */ }
The value of incoming HTTP request, without the request body
Methods
impl Request
[src]
fn new(method: Method, uri: &str) -> Result<Request, UriError>
[src]
Create a new instance of Request
from given HTTP method and URI
fn method(&self) -> &Method
[src]
Return the reference of HTTP method
fn path(&self) -> &str
[src]
Return the path of HTTP request
fn query(&self) -> Option<&str>
[src]
Return the query part of HTTP request
fn header<H: Header>(&self) -> Option<&H>
[src]
Return the reference of the header of HTTP request