Skip to content

Commit

Permalink
docs: add more information about req.body
Browse files Browse the repository at this point in the history
closes #146
  • Loading branch information
dougwilson committed Dec 16, 2015
1 parent a7ffb1a commit ecb572d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,10 @@ var bodyParser = require('body-parser')
```

The `bodyParser` object exposes various factories to create middlewares. All
middlewares will populate the `req.body` property with the parsed body or
provide an error to the callback. The various errors are described in the
middlewares will populate the `req.body` property with the parsed body, or an
empty object (`{}`) if there was no body to parse (or an error was returned).

The various errors returned by this module are described in the
[errors section](#errors).

### bodyParser.json(options)
Expand Down

0 comments on commit ecb572d

Please sign in to comment.