27 releases
0.16.0-rc.1 | Feb 21, 2024 |
---|---|
0.15.3 | Sep 10, 2023 |
0.15.1 | Feb 26, 2023 |
0.14.0 | Nov 14, 2022 |
0.8.2 | Dec 25, 2021 |
#185 in Asynchronous
86,648 downloads per month
Used in 17 crates
(2 directly)
77KB
1.5K
SLoC
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.
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.
Dependencies
~2.5–8.5MB
~68K SLoC