hapi-human-payload

0.1.0 • Public • Published

hapi-human-payload

hapi-human-payload

Payloads should be more forgiving, more human. This plugin lets your users send their payload as POST data or GET query parameters. It is combined into one 'human' payload.

Usage

var server = new Hapi.Server();
server.connection( { port: process.env.PORT, host: "0.0.0.0", routes: { cors: true } } );
 
server.register({
  register: require( "hapi-human-payload" ),
  options: { }
}, function ( err ) {
  if ( err ) throw err;
})

Requires Hapi 8 or greater.

Package Sidebar

Install

npm i hapi-human-payload

Weekly Downloads

4

Version

0.1.0

License

none

Last publish

Collaborators

  • motdotla