Skip to main content

Module server

Module server 

Source
Expand description

HTTP server entrypoints and route handlers. HTTP server state, router wiring, and endpoint tests.

Structs§

AppState
Shared application state used by all HTTP route handlers.

Functions§

authorize
Validates the configured local API key against either Authorization or x-api-key.
router
Builds the HTTP router for all supported endpoints.
serve
Binds the local listener and serves the Axum router until shutdown.