koajs / ratelimit

Rate limiter middleware
MIT License
485 stars 57 forks source link

feat: add onLimited callback #69

Open shellscape opened 7 months ago

shellscape commented 7 months ago

This PR introduces an onLimited callback, useful for logging and alerting within infrastructure when a limiting event occurs. In certain regulatory environments, retaining logs around these events are preferred.

Checklist