mirror of
https://github.com/tenrok/axios.git
synced 2026-06-17 19:21:29 +03:00
Sintaxe alternative to send data into the body (#2317)
This commit is contained in:
@@ -286,6 +286,11 @@ These are the available config options for making requests. Only the `url` is re
|
|||||||
data: {
|
data: {
|
||||||
firstName: 'Fred'
|
firstName: 'Fred'
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// sintaxe alternative to send data into the body
|
||||||
|
// method post
|
||||||
|
// only the value is sent, not the key
|
||||||
|
data: 'Country=Brasil&City=Belo Horizonte',
|
||||||
|
|
||||||
// `timeout` specifies the number of milliseconds before the request times out.
|
// `timeout` specifies the number of milliseconds before the request times out.
|
||||||
// If the request takes longer than `timeout`, the request will be aborted.
|
// If the request takes longer than `timeout`, the request will be aborted.
|
||||||
|
|||||||
Reference in New Issue
Block a user