Expand description
API Middleware
Authentication, authorization, rate limiting, and other middleware
Functionsยง
- check_
permission - Check whether
auth_tokencarries the given permission. - check_
role - Check whether
auth_tokencarries the given role. - logging_
middleware - Log every incoming HTTP request with method, URI, client IP, and user-agent.
- rate_
limit_ middleware_ with_ state - Rate limiting middleware backed by
crate::distributed::rate_limiting::DistributedRateLimiter. - security_
headers_ middleware - Security headers middleware
- timeout_
middleware - Request timeout middleware