Returns middleware that only parses json.
Returns middleware that only parses json. This parser accepts any Unicode encoding of the body and supports automatic inflation of gzip and deflate encodings.
the optional options object
A new body object containing the parsed data is populated on the request object after the middleware (i.e. req.body).
Returns middleware that parses all bodies as a Buffer.
Returns middleware that parses all bodies as a Buffer. This parser supports automatic inflation of gzip and deflate encodings.
the optional options object
A new body object containing the parsed data is populated on the request object after the middleware (i.e. req.body). This will be a Buffer object of the body.
Returns middleware that parses all bodies as a string.
Returns middleware that parses all bodies as a string. This parser supports automatic inflation of gzip and deflate encodings.
the optional options object
A new body string containing the parsed data is populated on the request object after the middleware (i.e. req.body). This will be a string of the body.
Returns middleware that only parses urlencoded bodies.
Returns middleware that only parses urlencoded bodies. This parser accepts only UTF-8 encoding of the body and supports automatic inflation of gzip and deflate encodings.
the optional options object
A new body object containing the parsed data is populated on the request object after the middleware (i.e. req.body). This object will contain key-value pairs, where the value can be a string or array (when extended is false), or any type (when extended is true).
body-parser - Node.js body parsing middleware
https://www.npmjs.com/package/body-parser