Trait iron::middleware::Handler
[−]
[src]
pub trait Handler: Send + Sync + 'static { fn handle(&self, &mut Request) -> IronResult<Response>; }
Handler
s 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.