Module rocket_governor::header
source · [−]Expand description
The headers used when a RocketGovernor guarded
path responds with TooManyRequests
.
Depending on setup some headers are also set on responding successful to let the client know about request limitations in the near future.
There is an RFC Draft.
Enums
HTTP headers used for rate-limiting.
Constants
Standard header for status 429 Too Many Requests (RFC 6585). This should indicate a client for how long it should wait in seconds for retry.
Custom header for reporting problems with rate limiter.
Header provides information about limitation of the route.
Header provides information about how many requests are left for the endpoint.
Header provides the time in seconds when a request to the route is not rate limited and the rate limiter bucket is full again.