mirror of
https://github.com/expressjs/expressjs.com.git
synced 2026-02-21 19:41:33 +00:00
Reflect body-parser changes in 5.x API docs and include those that where missing (#1883)
* Reflect body-parser changes in 5.x API docs
* Include missing body-parser middleware docs and alphabetize
This is 8225868d73, but for 5.x API.
---------
Co-authored-by: krzysdz <krzysdz@users.noreply.github.com>
Co-authored-by: Sebastian Beltran <bjohansebas@gmail.com>
This commit is contained in:
@@ -10,7 +10,7 @@ Unicode encoding of the body and supports automatic inflation of `gzip` and
|
||||
`deflate` encodings.
|
||||
|
||||
A new `body` object containing the parsed data is populated on the `request`
|
||||
object after the middleware (i.e. `req.body`), or an empty object (`{}`) if
|
||||
object after the middleware (i.e. `req.body`), or `undefined` if
|
||||
there was no body to parse, the `Content-Type` was not matched, or an error
|
||||
occurred.
|
||||
|
||||
|
||||
@@ -14,13 +14,21 @@ const app = express()
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/en/5x/express.static.md %}
|
||||
{% include api/en/5x/express.raw.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/en/5x/express.router.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/en/5x/express.static.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/en/5x/express.text.md %}
|
||||
</section>
|
||||
|
||||
<section markdown="1">
|
||||
{% include api/en/5x/express.urlencoded.md %}
|
||||
</section>
|
||||
|
||||
@@ -10,7 +10,7 @@ any Unicode encoding of the body and supports automatic inflation of `gzip` and
|
||||
`deflate` encodings.
|
||||
|
||||
A new `body` `Buffer` containing the parsed data is populated on the `request`
|
||||
object after the middleware (i.e. `req.body`), or an empty object (`{}`) if
|
||||
object after the middleware (i.e. `req.body`), or `undefined` if
|
||||
there was no body to parse, the `Content-Type` was not matched, or an error
|
||||
occurred.
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ any Unicode encoding of the body and supports automatic inflation of `gzip` and
|
||||
`deflate` encodings.
|
||||
|
||||
A new `body` string containing the parsed data is populated on the `request`
|
||||
object after the middleware (i.e. `req.body`), or an empty object (`{}`) if
|
||||
object after the middleware (i.e. `req.body`), or `undefined` if
|
||||
there was no body to parse, the `Content-Type` was not matched, or an error
|
||||
occurred.
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ parser accepts only UTF-8 encoding of the body and supports automatic
|
||||
inflation of `gzip` and `deflate` encodings.
|
||||
|
||||
A new `body` object containing the parsed data is populated on the `request`
|
||||
object after the middleware (i.e. `req.body`), or an empty object (`{}`) if
|
||||
object after the middleware (i.e. `req.body`), or `undefined` if
|
||||
there was no body to parse, the `Content-Type` was not matched, or an error
|
||||
occurred. 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`
|
||||
|
||||
@@ -4,8 +4,10 @@
|
||||
<ul id="express-menu">
|
||||
<li><em>Methods</em></li>
|
||||
<li id="express-json-middleware"><a href="#express.json">express.json()</a></li>
|
||||
<li id="express-static-middleware"><a href="#express.static">express.static()</a></li>
|
||||
<li id="express-raw-middleware"><a href="#express.raw">express.raw()</a></li>
|
||||
<li id="express-router"><a href="#express.router">express.Router()</a></li>
|
||||
<li id="express-static-middleware"><a href="#express.static">express.static()</a></li>
|
||||
<li id="express-text-middleware"><a href="#express.text">express.text()</a></li>
|
||||
<li id="express-urlencoded-middleware"><a href="#express.urlencoded">express.urlencoded()</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user