Skip to main content

Module server

Module server 

Source
Expand description

Production HTTP serving: applies the ServerConfig to an axum::Router and starts it on the configured bind addr, with optional TLS via axum-server.

Structs§

RateLimiter
RequestId
Typed wrapper for the per-request id, stored in Request::extensions by the request-id middleware. Handlers can pull it via req.extensions().get::<RequestId>() (or via the axum Extension<RequestId> extractor).

Functions§

apply_layers
Apply every layer the server config calls for to the user’s web router, then merge any static-file mounts. Returns a ready-to-serve axum::Router.
serve