koa-body-parser
Parse the request body in koa like ya' used to in express
Installation
npm install koa-body-parser
Options
empty
whether to throw a 415 if the client has indicated there is a body but it cannot be parsed (default:true
)length
length limit of the stream to pass to raw-body (default:content-length
)limit
byte limit of the body to pass to raw-body, throws 413 if body is largerencoding
requested encoding (default:utf8
)
Example
var bodyParser = ;var koa = ; var app = ; app; app; app;
License
MIT