koa-maxrequests

Limit max requests on each http keepalive connection

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
koa-maxrequests
211.0.08 years ago8 years agoMinified + gzip package size for koa-maxrequests in KB

Readme

maxrequests
!NPM versionnpm-imagenpm-url !build statustravis-imagetravis-url !Test coveragecodecov-imagecodecov-url !David depsdavid-imagedavid-url !Known Vulnerabilitiessnyk-imagesnyk-url !npm downloaddownload-imagedownload-url
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

MIT