-
-
Notifications
You must be signed in to change notification settings - Fork 557
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
Is there a way to read the current rate limit. #2080
Comments
@p4paul this should be easy enough to add as a feature, would you like to add it? |
Hi @tipsy it would be great to access the limit, hit count and remaining time (for the header fields I mentioned above). I guess you could expose Not sure how I would determine the seconds/milliseconds left until the count is reset. If the executor scheduler runs on the start of each timeUnit I guess a rounding up to the next time unit and subtracting the current time would work. |
I'll experiment - never used Kotlin before... |
I was looking to access the current rate limit count and add it to the Header...
For example: Rate limit 30/second, called 25 times, 58 seconds to reset.
using it something like...
The text was updated successfully, but these errors were encountered: