mirror of
https://github.com/tenrok/axios.git
synced 2026-06-17 19:21:29 +03:00
Documentation change for transformRequest (#955)
This commit is contained in:
@@ -215,7 +215,8 @@ These are the available config options for making requests. Only the `url` is re
|
|||||||
// This is only applicable for request methods 'PUT', 'POST', and 'PATCH'
|
// This is only applicable for request methods 'PUT', 'POST', and 'PATCH'
|
||||||
// The last function in the array must return a string or an instance of Buffer, ArrayBuffer,
|
// The last function in the array must return a string or an instance of Buffer, ArrayBuffer,
|
||||||
// FormData or Stream
|
// FormData or Stream
|
||||||
transformRequest: [function (data) {
|
// You may modify the headers object.
|
||||||
|
transformRequest: [function (data, headers) {
|
||||||
// Do whatever you want to transform the data
|
// Do whatever you want to transform the data
|
||||||
|
|
||||||
return data;
|
return data;
|
||||||
|
|||||||
Reference in New Issue
Block a user