Skip to content

[feat]: Generalized ratelimit default limits passed as args - #21

Open
crispycrispycrispy wants to merge 2 commits into
AtherEnergy:masterfrom
crispycrispycrispy:refactor/enable_ratelimit_on_get
Open

crispycrispycrispy wants to merge 2 commits into
AtherEnergy:masterfrom
crispycrispycrispy:refactor/enable_ratelimit_on_get

Conversation

@crispycrispycrispy

Copy link
Copy Markdown

[feat]: Generalized ratelimit default limits passed as args and also default limits set for each request method

@crispycrispycrispy

Copy link
Copy Markdown
Author

@arpitagarwal35
This PR consists of 2 main features added inside the ratelimiter only

  1. Ability to add ratelimiting on GET requests
    will return 429 status code if ratelimit is exceeded.

  2. Ability to pass custom values for maximum ratelimit and blocking duration from calling functions.
    Default values added as well. If passed arguments exist, then default values are overridden with passed arguments.

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.

2 participants