Trait iron::middleware::Handler [] [src]

pub trait Handler: Send + Sync + Any {
    fn handle(&self, &mut Request) -> IronResult<Response>;
}

Handlers are responsible for handling requests by creating Responses from Requests.

Required Methods

fn handle(&self, &mut Request) -> IronResult<Response>

Produce a Response from a Request, with the possibility of error.

Implementors