From 488a4598a3eedc5bf99a6df0bbd07d1cbd8bb1a4 Mon Sep 17 00:00:00 2001 From: Lucas <33911520+portolucas@users.noreply.github.com> Date: Fri, 13 Sep 2019 09:19:16 -0300 Subject: [PATCH] Sintaxe alternative to send data into the body (#2317) --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 153a90e55c..e5896cc2a8 100755 --- a/README.md +++ b/README.md @@ -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.