Struct susanoo::Context [] [src]

pub struct Context {
    pub method: Method,
    pub uri: Uri,
    pub params: OwnedCaptures,
    pub headers: Headers,
    pub ext: SendMap,
    // some fields omitted
}

A context during handling.

It contains an HTTP request, HTTP response to return, and a typemap in order to share variables between middlewares.

Fields

Captured parameters from router

Extension map to share values between handlers/middlewares

Methods

impl Context
[src]

Returns the path of request URL.

Spawn a new future into the event loop.