mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
Add independent maxBodyLength option (#2781)
* Add independent option to set the maximum size of the request body * Remove maxBodyLength check * Update README * Assert for error code and message
This commit is contained in:
@@ -361,6 +361,9 @@ These are the available config options for making requests. Only the `url` is re
|
||||
// `maxContentLength` defines the max size of the http response content in bytes allowed
|
||||
maxContentLength: 2000,
|
||||
|
||||
// `maxBodyLength` (Node only option) defines the max size of the http request content in bytes allowed
|
||||
maxBodyLength: 2000,
|
||||
|
||||
// `validateStatus` defines whether to resolve or reject the promise for a given
|
||||
// HTTP response status code. If `validateStatus` returns `true` (or is set to `null`
|
||||
// or `undefined`), the promise will be resolved; otherwise, the promise will be
|
||||
|
||||
Reference in New Issue
Block a user