Skip to main content

Module server

Module server 

Source
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§

HttpDeps
Everything the HTTP channel talks to.
HttpState
Cloneable handle to the channel’s state. Build the server with router; the crate::HttpChannel shares the same state.
LaneLimitReached
A user lane could not be created because the lane cap was reached.

Functions§

router
Build the complete HTTP API around state.