twilight_http_ratelimiting – Rust
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
This crate provides a common
Ratelimiter trait that all ratelimiter
implementations need to implement.
It also ships a default implementation,
InMemoryRatelimiter, that manages
the bucket states in memory.
tracing feature enables logging via the
This is enabled by default.
Read more here: Source link