Rocket/core/codegen
Matthew Pomes 9aa14d0e24 Add support for checking which route routed a request
- Adds RouteType and CatcherType traits to identify routes and catchers
- RouteType and CatcherType are implemented via codegen for attribute
macros
- Adds routed_by and caught_by methods to local client response
- Adds catcher to RequestState
- Updates route in RequestState to None if a catcher is run
- examples/hello tests now also check which route generated the reponse
- Adds DefaultCatcher type to represent Rocket's default catcher
- FileServer now implements RouteType
2023-10-18 01:30:02 -07:00
..
src Add support for checking which route routed a request 2023-10-18 01:30:02 -07:00
tests Use Span::mixed_site to avoid let unit warnings. 2023-10-16 17:50:49 -07:00
Cargo.toml Update dependencies. 2023-10-09 17:03:21 -07:00