ysocorp / koa2-ratelimit

Rate-limiting middleware for Koa2 ES6. Use to limit repeated requests to APIs and/or endpoints such as password reset.
MIT License
120 stars 37 forks source link

Error rate limiting #22

Closed jonathansm1th closed 4 years ago

jonathansm1th commented 4 years ago

We'd like to implement this rate limiter to throttle errors.

This PR adds the configuration and ability to skip rate limiting of successful requests, in order to only rate limit non 2xx's.

jonathansm1th commented 4 years ago

We ended up implementing this with a skip function.