Merge pull request #4919 from def-/httpclient-doc
Update httpclient documentation
This commit is contained in:
commit
de7027e0bf
1 changed files with 2 additions and 2 deletions
|
|
@ -18,14 +18,14 @@
|
||||||
##
|
##
|
||||||
## .. code-block:: Nim
|
## .. code-block:: Nim
|
||||||
## var client = newHttpClient()
|
## 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
|
## The same action can also be performed asynchronously, simply use the
|
||||||
## ``AsyncHttpClient``:
|
## ``AsyncHttpClient``:
|
||||||
##
|
##
|
||||||
## .. code-block:: Nim
|
## .. code-block:: Nim
|
||||||
## var client = newAsyncHttpClient()
|
## var client = newAsyncHttpClient()
|
||||||
## echo(await getContent("http://google.com"))
|
## echo await client.getContent("http://google.com")
|
||||||
##
|
##
|
||||||
## The functionality implemented by ``HttpClient`` and ``AsyncHttpClient``
|
## The functionality implemented by ``HttpClient`` and ``AsyncHttpClient``
|
||||||
## is the same, so you can use whichever one suits you best in the examples
|
## is the same, so you can use whichever one suits you best in the examples
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue