Struct iron::request::Request [] [src]

pub struct Request<'a, 'b: 'a> {
    pub url: Url,
    pub remote_addr: SocketAddr,
    pub local_addr: SocketAddr,
    pub headers: Headers,
    pub body: Body<'a, 'b>,
    pub method: Method,
    pub extensions: TypeMap,
}

The Request given to all Middleware.

Stores all the properties of the client's request plus an TypeMap for data communication between middleware.

Fields

The requested URL.

The originating address of the request.

The local address of the request.

The request headers.

The request body as a reader.

The request method.

Extensible storage for data passed between middleware.

Methods

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

Create a request from an HttpRequest.

This constructor consumes the HttpRequest.

Trait Implementations

impl<'a, 'b> Debug for Request<'a, 'b>
[src]

Formats the value using the given formatter.

impl<'a, 'b> Extensible for Request<'a, 'b>
[src]

Get a reference to the type's extension storage.

Get a mutable reference to the type's extension storage.

impl<'a, 'b> Plugin for Request<'a, 'b>
[src]

Return a copy of the plugin's produced value. Read more

Return a reference to the plugin's produced value. Read more

Return a mutable reference to the plugin's produced value. Read more

Create and evaluate a once-off instance of a plugin.

impl<'a, 'b> Set for Request<'a, 'b>
[src]

Modify self using the provided modifier.

Modify self through a mutable reference with the provided modifier.