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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.0
    1
  • 1.0.0
    0

Package Sidebar

Install

npm i connect-requires-json

Weekly Downloads

1

Version

1.1.0

License

ISC

Last publish

Collaborators

  • angryunicorn