Skip to content

Commit daf3c91

Browse files
docs: update external docs (#2176)
Co-authored-by: Create or Update Pull Request Action <create-or-update-pull-request@users.noreply.github.com>
1 parent dcf524f commit daf3c91

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

_includes/readmes/body-parser.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ specifies the number of bytes; if it is a string, the value is passed to the
100100
[bytes](https://www.npmjs.com/package/bytes) library for parsing. Defaults
101101
to `'100kb'`.
102102

103+
> It’s recommended not to configure a very high limit and to use the default value whenever possible. Allowing larger payloads increases memory usage because of the resources required for decoding and transformations, and it can also lead to longer response times as more data is processed. By ‘very high’, we mean values above the default, for example payloads of 5 MB or more can already start to introduce these risks. With the default limits, these issues do not occur.
104+
103105
##### reviver
104106

105107
The `reviver` option is passed directly to `JSON.parse` as the second
@@ -156,6 +158,8 @@ specifies the number of bytes; if it is a string, the value is passed to the
156158
[bytes](https://www.npmjs.com/package/bytes) library for parsing. Defaults
157159
to `'100kb'`.
158160

161+
> It’s recommended not to configure a very high limit and to use the default value whenever possible. Allowing larger payloads increases memory usage because of the resources required for decoding and transformations, and it can also lead to longer response times as more data is processed. By ‘very high’, we mean values above the default, for example payloads of 5 MB or more can already start to introduce these risks. With the default limits, these issues do not occur.
162+
159163
##### type
160164

161165
The `type` option is used to determine what media type the middleware will
@@ -207,6 +211,8 @@ specifies the number of bytes; if it is a string, the value is passed to the
207211
[bytes](https://www.npmjs.com/package/bytes) library for parsing. Defaults
208212
to `'100kb'`.
209213

214+
> It’s recommended not to configure a very high limit and to use the default value whenever possible. Allowing larger payloads increases memory usage because of the resources required for decoding and transformations, and it can also lead to longer response times as more data is processed. By ‘very high’, we mean values above the default, for example payloads of 5 MB or more can already start to introduce these risks. With the default limits, these issues do not occur.
215+
210216
##### type
211217

212218
The `type` option is used to determine what media type the middleware will
@@ -262,6 +268,8 @@ specifies the number of bytes; if it is a string, the value is passed to the
262268
[bytes](https://www.npmjs.com/package/bytes) library for parsing. Defaults
263269
to `'100kb'`.
264270

271+
> It’s recommended not to configure a very high limit and to use the default value whenever possible. Allowing larger payloads increases memory usage because of the resources required for decoding and transformations, and it can also lead to longer response times as more data is processed. By ‘very high’, we mean values above the default, for example payloads of 5 MB or more can already start to introduce these risks. With the default limits, these issues do not occur.
272+
265273
##### parameterLimit
266274

267275
The `parameterLimit` option controls the maximum number of parameters that

0 commit comments

Comments
 (0)