Skip to main content

Module middleware

Module middleware 

Source
Expand description

Middleware for internal route protection and HTTP security hardening.

Structs§

WorkerToken
Newtype wrapper for the static worker token, stored in request extensions.

Functions§

security_headers
Middleware that injects standard HTTP security headers on every response.
worker_token_auth
Axum middleware that validates a static worker token.