-
Notifications
You must be signed in to change notification settings - Fork 152
Capture ratelimit-remaining and ratelimit-reset headers in AbstractReply #351
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
Conversation
This pull request has the Example module disable in the |
It seems our PRs are both very similar (#327). If my PR is merged, would this remain useful? |
I have not had time to test this yet, trying to do this soon |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The implementation of this seems pretty hacked in with how it's being appended to the response body. It may be better to branch out from #399 and adding the headers to the HypixelHttpResponse object.
With #399 coming up, it doesn't make much sense anymore to pass these headers to the |
This is a handy addition to provide an easy way to know how many requests this key has left and how many seconds until the request counter for this key gets reset all shipped with the reply.