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

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

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

Required Methods

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

Implementors