Expand description
Token-bucket rate limiting middleware.
Provides a per-IP token-bucket rate limiter that can be used as Axum
middleware or checked manually in handlers. Disabled by default when
RateLimitConfig::enabled is false.
Structs§
- Rate
Limit Config - Configuration for the token-bucket rate limiter.
- Rate
Limiter - Per-IP token-bucket rate limiter.
Functions§
- rate_
limit_ response - Build a
429 Too Many Requestsresponse with AT-Protocol-style JSON body.