fastapi-limiter icon indicating copy to clipboard operation
fastapi-limiter copied to clipboard

Feature: Added "enabled" as a feature to FastAPILimiter

Open trevorWieland opened this issue 3 years ago • 3 comments

enabled: Default value is True which changes no features, but can be set to False. When False, no limiting checks will be done.

Use Cases: For debugging other features of API, excluding the Rate Limiter For enabling/disabling Rate Limiter using an environment variable, for deployment purposes

trevorWieland avatar Jun 09 '21 03:06 trevorWieland

I tested the results on my local machine, and added some test cases to ensure all '200' results when running the same original tests, but with enabled set to False.

Sorry in advance for any mistakes, this is my first time submitting a pull request in a public repository

trevorWieland avatar Jun 09 '21 03:06 trevorWieland

Hey there! I would love to see this merged. Any reason it's not?

koleror avatar Dec 22 '22 11:12 koleror

Thanks! Please resolve conflicts.

long2ice avatar Jan 05 '24 08:01 long2ice