1.0.0 • Published 8 years ago
koa-maxrequests v1.0.0
maxrequests
Limit max requests on each http keepalive connection.
Install
$ npm install koa-maxrequests
Usage
const maxrequests = require('koa-maxrequests');
const koa = require('koa');
const app = koa();
app.use(maxrequests({
// if keepalive socket hit max requests, response will set `Connection: close` header.
max: 1000,
}));
License
1.0.0
8 years ago