Struct susanoo::Context [] [src]

pub struct Context { /* 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.

Methods

impl Context
[src]

Create a new instance of Context from components.

Return the HTTP version

Return the reference of request method

Return the path of request URL

Return the query string of request URL

Get a reference of header field of T.

Return a reference of the request headers

Return a mutable reference of the request headers

Return a reference of the temporary storage, available during request handling.

Return a mutable reference of the temporary storage, available during request handling.

Return a reference of the global, shared storage.

Create returned future of Response from given Responder.