Expand description
HTTP server layer (Axum).
Server wires a compiled Router to an Axum
application. A single fallback handler receives every request, delegates
matching to the router, applies any configured delay, renders template
expressions in the response body and produces the HTTP response.
Optional CORS support adds permissive cross-origin headers and handles
OPTIONS preflight requests before route matching.
For testing, build_app returns a plain axum::Router that can be bound
to any address (including an ephemeral one).
Structs§
- Server
- A mockd server bound to a configuration.
Enums§
- Server
Error - Errors that can occur while building or running a
Server.
Functions§
- build_
app - Build an Axum application backed by the given router.