Expand description
Middleware for internal route protection and HTTP security hardening.
Structs§
- Worker
Token - Newtype wrapper for the static worker token, stored in request extensions.
Functions§
- https_
redirect - Middleware that redirects plain-HTTP requests to HTTPS.
- security_
headers - Middleware that injects standard HTTP security headers on every response.
- worker_
token_ auth - Axum middleware that validates a static worker token.