0.1.0 • Published 10 years ago

hapi-human-payload v0.1.0

Weekly downloads
7
License
-
Repository
github
Last release
10 years ago

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.