2 releases
0.1.1 | Jul 30, 2024 |
---|---|
0.1.0 | Jul 28, 2024 |
#526 in HTTP server
20KB
307 lines
actix-rate-limiter
actix-rate-limiter
is a simple yet powerful per-route rate limiter for
Actix with support for regex.
Available backends
Right now, only in-memory storage is supported officially. But you can
create your own backend using the BackendProvider
trait. You can use
MemoryBackendProvider
as an example implementation.
We plan to add support for some other backends in the future, such as Redis. If you want to help with their development, please open a PR.
Examples
Check the examples folder of our repository to see the available code samples.
License
This library is licensed under MIT License.
lib.rs
:
actix-rate-limiter
is a simple yet powerful per-route rate limiter for
Actix with support for regex.
Available backends
Right now, only in-memory storage is supported officially. But you can
create your own backend using the BackendProvider
trait. You can use
MemoryBackendProvider
as an example implementation.
We plan to add support for some other backends in the future, such as Redis. If you want to help with their development, please checkout our GitHub.
Examples
Check the examples folder of our repository to see the available code samples.
Dependencies
~18–29MB
~512K SLoC