Crate twilight_http_ratelimiting

Crate twilight_http_ratelimiting 

Source
Expand description

§twilight-http-ratelimiting

Ratelimiting functionality for HTTP requests.

Discord ratelimits requests to the HTTP API both globally and per-route. For more information on the specifics, please take a look at Discord’s documentation.

Structs§

Bucket
Rate limit information for one or more paths from previous RateLimitHeaders.
Endpoint
Rate limited endpoint.
MaybePermitFuture
Future that completes when a permit is ready or cancelled.
Permit
Permit to send a Discord HTTP API request to the acquired endpoint.
PermitFuture
Future that completes when a permit is ready.
RateLimitHeaders
Parsed user response rate limit headers.
RateLimiter
Discord HTTP client API rate limiter.

Enums§

Method
HTTP request method.

Constants§

GLOBAL_LIMIT_PERIOD
Duration from the first globally limited request until the remaining count resets to the global limit count.