Skip to content

Commit

Permalink
Sintaxe alternative to send data into the body (#2317)
Browse files Browse the repository at this point in the history
  • Loading branch information
portolucas authored and felipewmartins committed Sep 13, 2019
1 parent f7e2a99 commit 488a459
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Expand Up @@ -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.
Expand Down

0 comments on commit 488a459

Please sign in to comment.