Struct reset_router::Request [] [src]

pub struct Request<'a> { /* fields omitted */ }

Hyper Request and the matching regex

Methods

impl<'a> Request<'a>
[src]

Captures (if any) from the matched path regex

Parsed capture segments

Use like:

let (id, slug): (i32, String) = req.extract_captures().unwrap();

Methods from Deref<Target = HyperRequest>

Read the Request Uri.

Read the Request Version.

Read the Request headers.

Read the Request method.

Read the Request body.

The remote socket address of this request

This is an Option, because some underlying transports may not have a socket address, such as Unix Sockets.

This field is not used for outgoing requests.

The target path of this Request.

The query string of this Request.

Set the Method of this request.

Get a mutable reference to the Request headers.

Set the Uri of this request.

Set the HttpVersion of this request.

Set the body of the request.

By default, the body will be sent using Transfer-Encoding: chunked. To override this behavior, manually set a [ContentLength] header with the length of body.

Set that the URI should use the absolute form.

This is only needed when talking to HTTP/1 proxies to URLs not protected by TLS.

Deconstruct this Request into its pieces.

Modifying these pieces will have no effect on how hyper behaves.

Take the Request body.

Trait Implementations

impl<'a> RequestExtensions for Request<'a>
[src]

impl<'a> Deref for Request<'a>
[src]

The resulting type after dereferencing

The method called to dereference a value

impl<'a> DerefMut for Request<'a>
[src]

The method called to mutably dereference a value

impl<'a> From<HyperRequest> for Request<'a>
[src]

Performs the conversion.

impl<'a> From<(HyperRequest, Option<&'a Regex>)> for Request<'a>
[src]

Performs the conversion.