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,
    pub version: HttpVersion,
    // some fields omitted
}

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.

The version of the HTTP protocol used.

Methods

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

[src]

Create a request from an HttpRequest.

This constructor consumes the HttpRequest.

Trait Implementations

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

[src]

Formats the value using the given formatter.

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

[src]

Get a reference to the type's extension storage.

[src]

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

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

[src]

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

[src]

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

[src]

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

[src]

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

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

[src]

Modify self using the provided modifier.

[src]

Modify self through a mutable reference with the provided modifier.