@@ -64,8 +64,8 @@ The various errors returned by this module are described in the
6464
6565Returns middleware that only parses ` json ` and only looks at requests where
6666the ` Content-Type ` header matches the ` type ` option. This parser accepts any
67- Unicode encoding of the body and supports automatic inflation of ` gzip ` and
68- ` deflate ` encodings.
67+ Unicode encoding of the body and supports automatic inflation of ` gzip ` ,
68+ ` br ` (brotli) and ` deflate ` encodings.
6969
7070A new ` body ` object containing the parsed data is populated on the ` request `
7171object after the middleware (i.e. ` req.body ` ).
@@ -119,7 +119,8 @@ encoding of the request. The parsing can be aborted by throwing an error.
119119
120120Returns middleware that parses all bodies as a ` Buffer ` and only looks at
121121requests where the ` Content-Type ` header matches the ` type ` option. This
122- parser supports automatic inflation of ` gzip ` and ` deflate ` encodings.
122+ parser supports automatic inflation of ` gzip ` , ` br ` (brotli) and ` deflate `
123+ encodings.
123124
124125A new ` body ` object containing the parsed data is populated on the ` request `
125126object after the middleware (i.e. ` req.body ` ). This will be a ` Buffer ` object
@@ -164,7 +165,8 @@ encoding of the request. The parsing can be aborted by throwing an error.
164165
165166Returns middleware that parses all bodies as a string and only looks at
166167requests where the ` Content-Type ` header matches the ` type ` option. This
167- parser supports automatic inflation of ` gzip ` and ` deflate ` encodings.
168+ parser supports automatic inflation of ` gzip ` , ` br ` (brotli) and ` deflate `
169+ encodings.
168170
169171A new ` body ` string containing the parsed data is populated on the ` request `
170172object after the middleware (i.e. ` req.body ` ). This will be a string of the
@@ -214,7 +216,7 @@ encoding of the request. The parsing can be aborted by throwing an error.
214216Returns middleware that only parses ` urlencoded ` bodies and only looks at
215217requests where the ` Content-Type ` header matches the ` type ` option. This
216218parser accepts only UTF-8 encoding of the body and supports automatic
217- inflation of ` gzip ` and ` deflate ` encodings.
219+ inflation of ` gzip ` , ` br ` (brotli) and ` deflate ` encodings.
218220
219221A new ` body ` object containing the parsed data is populated on the ` request `
220222object after the middleware (i.e. ` req.body ` ). This object will contain
0 commit comments