Skip to content

A Vapr plugin that rejects any requests containing a body

License

Notifications You must be signed in to change notification settings

JoshuaWise/vapr-no-input

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vapr-no-input Build Status

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) => { ... });

About

A Vapr plugin that rejects any requests containing a body

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published