Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

call Middleware after error Requests #256

Open
2 tasks
jxs opened this issue Jul 16, 2018 · 0 comments
Open
2 tasks

call Middleware after error Requests #256

jxs opened this issue Jul 16, 2018 · 0 comments

Comments

@jxs
Copy link
Contributor

jxs commented Jul 16, 2018

currently a Middleware is only called after a route is found and the handler is successful, so there are situations where the Middleware call function isn't called, and others where you subscribe chain(state) with then, then isn't called:

  • 4XX's requests (404 and 405 don't event call the Middleware call function)
  • 5XX's requests (if the handler function panics, then isn't called with a HandlerError)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants