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

[SUGESTION] Strict mode for rates #5

Open
alesancor1 opened this issue Sep 12, 2022 · 0 comments
Open

[SUGESTION] Strict mode for rates #5

alesancor1 opened this issue Sep 12, 2022 · 0 comments
Labels
sugestion New feature or request

Comments

@alesancor1
Copy link
Member

Describe the solution you'd like
Currently the requests are delayed through express-slow-down when the rates (dynamic window) is not met. An optoin should be added to directly throw an error (HTTP 429) in this case instead of slowing requests down.

Describe alternatives you've considered

  • Directly throw an error instead of input delay to requests.
  • Add an option in configuration, like strict: true | false that allows to change the behaviour.
@alesancor1 alesancor1 added the sugestion New feature or request label Sep 12, 2022
@alesancor1 alesancor1 moved this to Checking in OAS TOOLS PROJECT Sep 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sugestion New feature or request
Projects
Status: Checking
Development

No branches or pull requests

1 participant