From 64cbcec54d7bf94ff9718416722e06f4462e8a5c Mon Sep 17 00:00:00 2001 From: daneb Date: Tue, 13 Jun 2017 21:08:04 +0200 Subject: Working example to resolve #5863 --- lib/pure/httpclient.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/pure/httpclient.nim') 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 ## ================== -- cgit 1.4.1-2-gfad0