Expand description
The axum application: shared state, middleware and request handlers.
Middleware, outermost first: response counting, security headers,
panic containment, CORS (answers preflights before authentication),
API-key authentication (everything except GET /health), body limit.
Structs§
- Http
Deps - Everything the HTTP channel talks to.
- Http
State - Cloneable handle to the channel’s state. Build the server with
router; thecrate::HttpChannelshares the same state. - Lane
Limit Reached - A user lane could not be created because the lane cap was reached.
Functions§
- router
- Build the complete HTTP API around
state.