Expand description
Router-level rate limiting.
Structs§
- Governor
Memory Rate Limit Store - Hybrid
Rate Limit Store - Legacy
Rate Limit Storage Adapter - Rate
Limit Rejection - Request
Client Ip - Framework-neutral client IP resolved by an HTTP adapter.
Functions§
- consume_
rate_ limit - consume_
scoped_ rate_ limit - Consume a rate-limit bucket keyed by client IP, path, and an opaque scope.
- hash_
rate_ limit_ scope - Derive a stable, non-reversible rate-limit scope identifier.
- on_
request_ rate_ limit - on_
response_ rate_ limit - resolve_
client_ ip - Resolve the trusted client IP for a request using
advanced.ip_addressconfiguration. Shared by rate limiting and request metadata so the two never disagree about the same request. ReturnsNonewhen no trusted IP can be resolved instead of trusting raw forwarding headers.