Structs§
Functions§
- default_
rate_ limiter - Default rate limiter: 1000 requests per second.
- generate_
token - Generate a random UUID v4 token for Bearer authentication.
- origin_
guard - Localhost origin guard: rejects requests with non-localhost Origin header.
- rate_
limit - Axum middleware for rate limiting.
- require_
auth - Axum middleware that validates Bearer token authentication.
- security_
headers - Security headers middleware: X-Content-Type-Options, Cache-Control.