diff options
author | daneb <dane.balia@hetzner.co.za> | 2017-06-13 21:08:04 +0200 |
---|---|---|
committer | daneb <dane.balia@hetzner.co.za> | 2017-06-13 21:08:04 +0200 |
commit | 64cbcec54d7bf94ff9718416722e06f4462e8a5c (patch) | |
tree | c2105678d65d389448de11e4c35926c31531ca34 | |
parent | d3e93a1da9b2f9add083f059004a7958bb7a06f4 (diff) | |
download | Nim-64cbcec54d7bf94ff9718416722e06f4462e8a5c.tar.gz |
Working example to resolve #5863
-rw-r--r-- | lib/pure/httpclient.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pure/httpclient.nim b/lib/pure/httpclient.nim index 4f43177a8..641576bf7 100644 --- a/lib/pure/httpclient.nim +++ b/lib/pure/httpclient.nim @@ -62,7 +62,8 @@ ## let body = %*{ ## "data": "some text" ## } -## echo client.request("http://some.api", httpMethod = HttpPost, body = $body) +## var response = client.request("http://some.api", httpMethod = HttpPost, body = $body) +## echo response.status ## ## Progress reporting ## ================== |