ratelimitj icon indicating copy to clipboard operation
ratelimitj copied to clipboard

Change `overLimitWhenIncremented` to return an object with limiting information instead of Boolean

Open tandel-pratik opened this issue 3 years ago • 0 comments

Context

Often many APIs that use rate limiting return the number of remaining calls using headers like X-RateLimit-Remaining. It would be ideal for the interfaces to return an object that contains additional information like number of calls remaining and when the limit will be reset. This makes it easier for clients to deal with the rate limits in a better way.

tandel-pratik avatar Jun 23 '21 16:06 tandel-pratik