- MERN Quick Start Guide
- Eddy Wilson Iriarte Koroliova
- 65字
- 2021-06-25 21:30:17
Parsing the HTTP request body
body-parser is a middleware function that parses the incoming request body and makes it available in the request object as request.body https://expressjs.com/en/resources/middleware/body-parser.html.
This module allows an application to parse the incoming request as:
- JSON
- Text
- Raw (buffer original incoming data)
- URL encoded form
The module supports automatic decompression of gzip and deflates encodings when the incoming request is compressed.