Module axum

Source
Expand description

Utilities to work with axum

Modules§

extract
Wrappers over axum’s extract, providing custom error responses.

Traits§

CorsService
CORS service
CorsState
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