https://github.com/motdotla/hapi-human-payload
Hapi plugin to lets your users send their payload as POST data or GET query parameters.
https://github.com/motdotla/hapi-human-payload
Last synced: 7 months ago
JSON representation
Hapi plugin to lets your users send their payload as POST data or GET query parameters.
- Host: GitHub
- URL: https://github.com/motdotla/hapi-human-payload
- Owner: motdotla
- Created: 2015-01-29T20:09:51.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-27T00:27:25.000Z (over 10 years ago)
- Last Synced: 2024-10-14T11:00:45.493Z (12 months ago)
- Language: JavaScript
- Size: 152 KB
- Stars: 1
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```javascript
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.