-
Supports creating custom rules in any mode.
-
Implemented using a memory token bucket.
-
easy use. u can add and any web server(eg:axum) as middleware
rate_limiter_check().await //init rate limiter and start keys check add_rule(pattern, limit, duration).await; // define you pattern at duration seconds can access limit time token_access(key, pattern).await; //check your key token access with pattern
-
Notifications
You must be signed in to change notification settings - Fork 0
purplecity/rust_rate_limit
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
rust rate limit middleware
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published