koa2-ratelimit
koa2-ratelimit copied to clipboard
Rate-limiting middleware for Koa2 ES6. Use to limit repeated requests to APIs and/or endpoints such as password reset.
Results
21
koa2-ratelimit issues
Sort by
recently updated
recently updated
newest added
very simple in the rate limit function can we do ``` if (this.options.skipSuccessfulRequests) { ctx.res.on('finish', () => { if (ctx.status < 400) { this.store.decrement(key, this.options, weight); } }); } ```