hal-body
Parse hal+json body using halson and co-body.
Installation
$ npm install hal-body
Options
Available via raw-body:
limit
number or string representing the request size limit (1mb for json)
Example
var parseHal = ; // application/hal+jsonvar resource = ;console);console;
Koa
This lib also supports ctx.req
in Koa (or other libraries),
so that you may simply use this
instead of this.req
.
var parseHal = ; // application/hal+jsonvar resource = ;console;console;
License
MIT