twilight-http-ratelimiting

Crates.iotwilight-http-ratelimiting
lib.rstwilight-http-ratelimiting
version0.16.0-rc.1
sourcesrc
created_at2021-12-03 19:52:47.980109
updated_at2024-02-21 17:34:13.56457
descriptionDiscord REST API ratelimiter implementations for the Twilight ecosystem.
homepagehttps://twilight.rs/
repositoryhttps://github.com/twilight-rs/twilight.git
max_upload_size
id491911
size76,765
core (github:twilight-rs:core)

documentation

README

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.

Commit count: 2436

cargo fmt