summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDominik Picheta <dominikpicheta@googlemail.com>2017-06-14 14:19:29 +0100
committerGitHub <noreply@github.com>2017-06-14 14:19:29 +0100
commit6ca9ad6608b92246198b613c40dcea8ee2b36b5d (patch)
treeee43ab84a0f9f7942913a44505a4303cdb362b76
parentd3e93a1da9b2f9add083f059004a7958bb7a06f4 (diff)
parent0a022664d513dc01ca03b4a74b6a6d80314cfcf4 (diff)
downloadNim-6ca9ad6608b92246198b613c40dcea8ee2b36b5d.tar.gz
Merge pull request #5982 from daneb/devel
Working example in comment to resolve #5863
-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..909a2613f 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)
+##   let response = client.request("http://some.api", httpMethod = HttpPost, body = $body)
+##   echo response.status
 ##
 ## Progress reporting
 ## ==================