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

Read access for bucket values for Rate Limit Headers #16

Closed
lorand-gombos opened this issue Sep 3, 2021 · 1 comment
Closed

Read access for bucket values for Rate Limit Headers #16

lorand-gombos opened this issue Sep 3, 2021 · 1 comment

Comments

@lorand-gombos
Copy link

Is there a way to read the bucket values that are usually used to set rate limit headers?

Example:

X-Rate-Limit-Limit: 2
X-Rate-Limit-Remaining: 1
X-Rate-Limit-Reset: 25
@sief
Copy link
Owner

sief commented Sep 3, 2021

Unfortunately, these headers don't fit the concept of a token-bucket.
Apart from that, you get the remaining bucket tokens as the return value of TokenBucketGroup.consume.

@sief sief closed this as completed Jan 28, 2022
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

No branches or pull requests

2 participants