updated comments

This commit is contained in:
Casper Rasmussen 2017-01-13 19:51:52 +01:00 committed by GitHub
parent e7e1f1696c
commit a4a59a77d1
1 changed files with 4 additions and 6 deletions

View File

@ -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.