diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-10-21 11:34:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-21 11:34:42 +0200 |
commit | de7027e0bfff7b106f9916c0caec579b77d54dd0 (patch) | |
tree | b41b0764e239fb17a394453ea344fc5762bc205b /lib | |
parent | df6aeb573afcfd38feab1ab61e66eb8c99e85696 (diff) | |
parent | f0ed986e0ef21451e5114e6da842c9f82d127cd3 (diff) | |
download | Nim-de7027e0bfff7b106f9916c0caec579b77d54dd0.tar.gz |
Merge pull request #4919 from def-/httpclient-doc
Update httpclient documentation
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pure/httpclient.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/httpclient.nim b/lib/pure/httpclient.nim index 6bd4701f0..5fa0d0bcc 100644 --- a/lib/pure/httpclient.nim +++ b/lib/pure/httpclient.nim @@ -18,14 +18,14 @@ ## ## .. code-block:: Nim ## var client = newHttpClient() -## echo(getContent("http://google.com")) +## echo client.getContent("http://google.com") ## ## The same action can also be performed asynchronously, simply use the ## ``AsyncHttpClient``: ## ## .. code-block:: Nim ## var client = newAsyncHttpClient() -## echo(await getContent("http://google.com")) +## echo await client.getContent("http://google.com") ## ## The functionality implemented by ``HttpClient`` and ``AsyncHttpClient`` ## is the same, so you can use whichever one suits you best in the examples |