From a4a59a77d14b34a6e7fc0f89b6071b3e0f023fb5 Mon Sep 17 00:00:00 2001 From: Casper Rasmussen Date: Fri, 13 Jan 2017 19:51:52 +0100 Subject: [PATCH] updated comments --- http/client.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/http/client.md b/http/client.md index 71f755d7..7e59a180 100644 --- a/http/client.md +++ b/http/client.md @@ -39,14 +39,12 @@ try drop.client.post("http://some-endpoint/json", headers: ["Auth": "Token my-au ### POST as x-www-form-urlencoded ```swift try drop.client.post("http://some-endpoint", headers: [ - "Content-Type": "application/x-www-form-urlencoded" - ], body: Body.data( Node([ - "email": "mymail@vapor.codes" - ]).formURLEncoded())) - + "Content-Type": "application/x-www-form-urlencoded" +], body: Body.data( Node([ + "email": "mymail@vapor.codes" +]).formURLEncoded())) ``` - ### Full Request To access additional functionality or custom methods, use the underlying `request` function directly.