Struct rs_router::Router
[−]
[src]
pub struct Router { /* fields omitted */ }
Methods
impl Router
[src]
fn build<'a>() -> RouterBuilder<'a>
Trait Implementations
impl Send for Router
[src]
impl Sync for Router
[src]
impl Handler for Router
[src]
fn handle<'a, 'k>(&'a self, req: HyperRequest<'a, 'k>, res: HyperResponse<'a>)
Receives a Request
/Response
pair, and should perform some action on them. Read more
fn check_continue(&self, (&Method, &RequestUri, &Headers)) -> StatusCode
Called when a Request includes a Expect: 100-continue
header. Read more
fn on_connection_start(&self)
This is run after a connection is received, on a per-connection basis (not a per-request basis, as a connection with keep-alive may handle multiple requests) Read more
fn on_connection_end(&self)
This is run before a connection is closed, on a per-connection basis (not a per-request basis, as a connection with keep-alive may handle multiple requests) Read more