mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
docs(): Detailed config options environment. (#2088)
* docs(): Detailed config options environment. * Update README.md Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
@@ -339,7 +339,7 @@ These are the available config options for making requests. Only the `url` is re
|
|||||||
// browser only: 'blob'
|
// browser only: 'blob'
|
||||||
responseType: 'json', // default
|
responseType: 'json', // default
|
||||||
|
|
||||||
// `responseEncoding` indicates encoding to use for decoding responses
|
// `responseEncoding` indicates encoding to use for decoding responses (Node.js only)
|
||||||
// Note: Ignored for `responseType` of 'stream' or client-side requests
|
// Note: Ignored for `responseType` of 'stream' or client-side requests
|
||||||
responseEncoding: 'utf8', // default
|
responseEncoding: 'utf8', // default
|
||||||
|
|
||||||
@@ -361,7 +361,7 @@ These are the available config options for making requests. Only the `url` is re
|
|||||||
// Do whatever you want with the native progress event
|
// Do whatever you want with the native progress event
|
||||||
},
|
},
|
||||||
|
|
||||||
// `maxContentLength` defines the max size of the http response content in bytes allowed
|
// `maxContentLength` defines the max size of the http response content in bytes allowed in node.js
|
||||||
maxContentLength: 2000,
|
maxContentLength: 2000,
|
||||||
|
|
||||||
// `maxBodyLength` (Node only option) defines the max size of the http request content in bytes allowed
|
// `maxBodyLength` (Node only option) defines the max size of the http request content in bytes allowed
|
||||||
|
|||||||
Reference in New Issue
Block a user