Trait rustless::Handler [] [src]

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

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