diff options
author | Dominik Picheta <dominikpicheta@googlemail.com> | 2017-06-14 14:19:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-14 14:19:29 +0100 |
commit | 6ca9ad6608b92246198b613c40dcea8ee2b36b5d (patch) | |
tree | ee43ab84a0f9f7942913a44505a4303cdb362b76 | |
parent | d3e93a1da9b2f9add083f059004a7958bb7a06f4 (diff) | |
parent | 0a022664d513dc01ca03b4a74b6a6d80314cfcf4 (diff) | |
download | Nim-6ca9ad6608b92246198b613c40dcea8ee2b36b5d.tar.gz |
Merge pull request #5982 from daneb/devel
Working example in comment 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..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 ## ================== |