mirror of
https://github.com/tenrok/axios.git
synced 2026-05-21 13:24:11 +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: {
|
||||
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.
|
||||
// If the request takes longer than `timeout`, the request will be aborted.
|
||||
|
||||
Reference in New Issue
Block a user