Expand description
Utilities to work with axum
Modules§
Traits§
- Cors
Service - CORS service
- Cors
State - Trait implemented by the application State to provide cors-related services.
Functions§
- build_
http_ server - Builds a new axum HTTP Server for a given Router
- build_
router - Add tracing and cors layers to the given router.
- prevent_
csrf - Middleware to check that the
x-requested-with
custom header is present on requests, failing if not