HypixelDev / PublicAPI

Official Java implementation of the Hypixel Public API.
https://api.hypixel.net
MIT License
535 stars 151 forks source link

[Suggestion] Rate-Limit, Rate-Remaining, Rate-Reset headers accessible to use #598

Closed DevBefell closed 1 year ago

DevBefell commented 1 year ago

Since the /key endpoint is being depreciated, there is no other way (that I found) to get the key information, other than the .getKey or implementing a custom client to get the headers. My suggestion is to add the ability to get headers when having any reply from the API, E.G PlayerReply has a .getRateLimit, .getRateRemaining, and .getRateReset, something that all replies will have.