pub trait Handler:
Send
+ Sync
+ 'static {
// Required method
fn handle(&self, _: &mut Request<'_, '_>) -> IronResult<Response>;
}
Expand description
Handler
s are responsible for handling requests by creating Responses from Requests.
Required Methods§
Sourcefn handle(&self, _: &mut Request<'_, '_>) -> IronResult<Response>
fn handle(&self, _: &mut Request<'_, '_>) -> IronResult<Response>
Produce a Response
from a Request, with the possibility of error.