-
As the title mentioned, I need middleware to handle common HTTP errors (404 / 500 / ) and it may result in url redirect, etc. How to archive that? Or are there any other approaches to do this? Thanks. |
Beta Was this translation helpful? Give feedback.
Answered by
robjtede
Mar 6, 2021
Replies: 1 comment 1 reply
-
Some resources to check out. https://actix.rs/docs/middleware/ https://github.com/actix/examples/tree/master/basics/middleware Also look at the implementations of the built in middleware: https://github.com/actix/actix-web/tree/master/src/middleware |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
robjtede
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Some resources to check out.
https://actix.rs/docs/middleware/
https://github.com/actix/examples/tree/master/basics/middleware
Also look at the implementations of the built in middleware: https://github.com/actix/actix-web/tree/master/src/middleware