@@ -37,6 +37,10 @@ This module provides the following parsers:
3737 * [ Text body parser] ( #bodyparsertextoptions )
3838 * [ URL-encoded form body parser] ( #bodyparserurlencodedoptions )
3939
40+ All parsers support automatic inflation of ` gzip ` , ` br ` (brotli), ` deflate `
41+ and ` zstd ` encodings. ` zstd ` is available in Node.js ` ^22.15.0 ` and
42+ ` >=23.8.0 ` .
43+
4044Other body parsers you might be interested in:
4145
4246- [ body] ( https://www.npmjs.com/package/body#readme )
@@ -72,8 +76,7 @@ The various errors returned by this module are described in the
7276
7377Returns middleware that only parses ` json ` and only looks at requests where
7478the ` Content-Type ` header matches the ` type ` option. This parser accepts any
75- Unicode encoding of the body and supports automatic inflation of ` gzip ` ,
76- ` br ` (brotli) and ` deflate ` encodings.
79+ Unicode encoding of the body.
7780
7881A new ` body ` object containing the parsed data is populated on the ` request `
7982object after the middleware (i.e. ` req.body ` ).
@@ -133,9 +136,7 @@ encoding of the request. The parsing can be aborted by throwing an error.
133136### bodyParser.raw([ options] )
134137
135138Returns middleware that parses all bodies as a ` Buffer ` and only looks at
136- requests where the ` Content-Type ` header matches the ` type ` option. This
137- parser supports automatic inflation of ` gzip ` , ` br ` (brotli) and ` deflate `
138- encodings.
139+ requests where the ` Content-Type ` header matches the ` type ` option.
139140
140141A new ` body ` object containing the parsed data is populated on the ` request `
141142object after the middleware (i.e. ` req.body ` ). This will be a ` Buffer ` object
@@ -181,9 +182,7 @@ encoding of the request. The parsing can be aborted by throwing an error.
181182### bodyParser.text([ options] )
182183
183184Returns middleware that parses all bodies as a string and only looks at
184- requests where the ` Content-Type ` header matches the ` type ` option. This
185- parser supports automatic inflation of ` gzip ` , ` br ` (brotli) and ` deflate `
186- encodings.
185+ requests where the ` Content-Type ` header matches the ` type ` option.
187186
188187A new ` body ` string containing the parsed data is populated on the ` request `
189188object after the middleware (i.e. ` req.body ` ). This will be a string of the
@@ -234,8 +233,7 @@ encoding of the request. The parsing can be aborted by throwing an error.
234233
235234Returns middleware that only parses ` urlencoded ` bodies and only looks at
236235requests where the ` Content-Type ` header matches the ` type ` option. This
237- parser accepts only UTF-8 and ISO-8859-1 encodings of the body and supports
238- automatic inflation of ` gzip ` , ` br ` (brotli) and ` deflate ` encodings.
236+ parser accepts only UTF-8 and ISO-8859-1 encodings of the body.
239237
240238A new ` body ` object containing the parsed data is populated on the ` request `
241239object after the middleware (i.e. ` req.body ` ). This object will contain
0 commit comments