expressjs / express

Fast, unopinionated, minimalist web framework for node.
https://expressjs.com
MIT License
65.56k stars 16.15k forks source link

Add bodyParser back to express 4.x #2211

Closed dougwilson closed 7 years ago

dougwilson commented 10 years ago

We have removed all the middlewares from being bundled with express (which is awesome, i.m.o), but left one: static. I think we really should bundle bodyParser again, because I think parsing bodies is probably even more common than serving static files and many people really have no idea how to read the body from IncomingMessage objects (aka req) in Node.js core for whatever reason.

wesleytodd commented 6 years ago

Yes you can (and should) still use body-parser, just as a separate module: https://www.npmjs.com/package/body-parser