connect-requires-json

1.1.0 • Public • Published

connect-requires-json

JavaScript Style Guide Build Status Coverage Status

This middleware will validate incoming request bodies, throwing a 400 when the body is empty and 415 when the Content-Type header does not contain json.

Package Sidebar

Install

npm i connect-requires-json

Weekly Downloads

1

Version

1.1.0

License

ISC

Last publish

Collaborators

  • angryunicorn