Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Added "enabled" as a feature to FastAPILimiter #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

trevorWieland
Copy link

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

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

trevorWieland commented Jun 9, 2021

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

@koleror
Copy link

koleror commented Dec 22, 2022

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

@long2ice
Copy link
Owner

long2ice commented Jan 5, 2024

Thanks! Please resolve conflicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants