Skip to main content

Module router

Module router 

Source
Expand description

The ACME listener’s routers — the whole service and one profile’s — the metrics listener’s, and the response layers shared with the admin listener.

Structs§

AppState
Shared application state handed to every route via State<AppState>.

Functions§

build_app
Builds the whole HTTP service: the server-level routes at the root, and one ACME router per profile under /profile/<name>.
build_router
Builds one profile’s ACME router: every RFC 8555 resource, plus the two layers that are per-endpoint (its filter chain) or ACME-specific (the Replay-Nonce minting).
catch_panic_acme
The last-resort panic layer for the ACME listener — see [acme_panic_response].
metrics_app
Builds the metrics listener’s router: GET /metrics and nothing else.
panic_message
The human-readable message a panic payload carries, or a fixed fallback.
security_headers
The three response-hardening headers both listeners apply.