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

Fixing some use-cases of the response rate limiting plugin #1235

Merged
merged 1 commit into from
May 24, 2016

Conversation

subnetmarco
Copy link
Member

Closes #1096.

This PR does two things:

  • Appends usage header to the upstream request, so that the API can determine if a request, bulk or not bulk, can be processed or not. The headers will be in the form of X-Ratelimit-Remaining-{limit_name}, like X-Ratelimit-Remaining-Image.
  • Introduces a block_on_first_violation configuration property that blocks processing requests when at least one limit has been reached.

@subnetmarco subnetmarco added this to the 0.8.2 milestone May 20, 2016
@subnetmarco subnetmarco self-assigned this May 20, 2016
@subnetmarco
Copy link
Member Author

@codewaffle what do you think?

@subnetmarco subnetmarco merged commit 39b26d8 into next May 24, 2016
@subnetmarco subnetmarco deleted the fix/response-rate-limiting branch May 24, 2016 20:53
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.

1 participant