Struct ferrum::request::Request [] [src]

pub struct Request {
    pub uri: Uri,
    pub uri_path_segments: Vec<String>,
    pub method: Method,
    pub version: HttpVersion,
    pub remote_addr: Option<SocketAddr>,
    pub headers: Headers,
    pub body: Option<Body>,
    pub extensions: TypeMap<TypeMapInner>,
    // 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 URI.

The URI path segments collection

The request method.

The version of the HTTP protocol used.

The originating address of the request. Some underlying transports may not have a socket address, such as Unix Sockets.

The request headers.

The request body.

Extensible storage for data passed between middleware.

Methods

impl Request
[src]

[src]

Create a request from an HyperRequest.

This constructor consumes the HyperRequest.

[src]

Trait Implementations

impl Debug for Request
[src]

[src]

Formats the value using the given formatter.

impl Extensible<TypeMapInner> for Request
[src]

[src]

Get a reference to the type's extension storage.

[src]

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

impl Plugin for Request
[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.