2
0
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:
Lucas
2019-09-13 09:19:16 -03:00
committed by Felipe Martins
parent f7e2a995d6
commit 488a4598a3
+5
View File
@@ -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.