vapr-no-input
v0.5.1
Published
A Vapr plugin that rejects any requests containing a body
Downloads
2
Maintainers
Readme
vapr-no-input
Installation
npm install --save vapr
npm install --save vapr-no-input
Usage
With the vapr-no-input
plugin, if someone makes a request containing any body content, they'll receive 413 Payload Too Large
.
const noInput = require('vapr-no-input');
const app = require('vapr')();
const route = app.get('/foo');
route.use(noInput());
route.use((req) => { ... });