summary refs log tree commit diff stats
path: root/lib/pure
diff options
context:
space:
mode:
authordaneb <dane.balia@hetzner.co.za>2017-06-13 21:08:04 +0200
committerdaneb <dane.balia@hetzner.co.za>2017-06-13 21:08:04 +0200
commit64cbcec54d7bf94ff9718416722e06f4462e8a5c (patch)
treec2105678d65d389448de11e4c35926c31531ca34 /lib/pure
parentd3e93a1da9b2f9add083f059004a7958bb7a06f4 (diff)
downloadNim-64cbcec54d7bf94ff9718416722e06f4462e8a5c.tar.gz
Working example to resolve #5863
Diffstat (limited to 'lib/pure')
-rw-r--r--lib/pure/httpclient.nim3
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
 ## ==================