-
-
Save reem/de638ed0b043657f6f1b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
impl Handler for fn(&mut Request) -> IronResult<Response> { | |
fn call(&self, req: &mut Request) -> IronResult<Response> { | |
(*self)(req) | |
} | |
fn catch(&self, _: &mut Request, err: IronError) -> (Response, IronResult<()>) { | |
(Response::status(status::InternalServerError), Err(err)) | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment