Kong / kong

🦍 The Cloud-Native API Gateway and AI Gateway.
https://konghq.com/install/#kong-community
Apache License 2.0
39.22k stars 4.81k forks source link

[ratelimiting] X-RateLimit-Reset #233

Closed montanaflynn closed 4 years ago

montanaflynn commented 9 years ago

The rate-limit plugin should return a third header for when the time-frame expires and the limit resets. This is especially important for people writing code to avoid going over their limits.

Here's how GitHub defines the header:

Header Name Description
X-RateLimit-Reset The time at which the current rate limit window resets in UTC epoch seconds.

Since we support multiple rate-limit timeframes we would need to make it the format chosen in https://github.com/Mashape/kong/pull/224

bungle commented 4 years ago

the #5335 is now merged, thus closing this.