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

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

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

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

Loading content...

Implementations on Foreign Types

impl Handler for Box<dyn Handler>[src]

Loading content...


impl Handler for Chain[src]

impl<F> Handler for F where
    F: Send + Sync + 'static + Fn(&mut Request) -> IronResult<Response>, 

Loading content...