| Crates.io | twilight-http-ratelimiting |
| lib.rs | twilight-http-ratelimiting |
| version | 0.16.0 |
| created_at | 2021-12-03 19:52:47.980109+00 |
| updated_at | 2025-01-12 09:47:38.326558+00 |
| description | Discord REST API ratelimiter implementations for the Twilight ecosystem. |
| homepage | https://twilight.rs/ |
| repository | https://github.com/twilight-rs/twilight.git |
| max_upload_size | |
| id | 491911 |
| size | 77,805 |
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.
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.