Updated httpClient.nim: added import httpClient statements in examples
Added import httpClient statements in examples, as it was not obvious for a new started from python regarding what to import
This commit is contained in:
parent
3c106541fa
commit
a0623a2356
1 changed files with 2 additions and 0 deletions
|
|
@ -17,6 +17,7 @@
|
|||
## ``http://google.com``:
|
||||
##
|
||||
## .. code-block:: Nim
|
||||
## import httpClient
|
||||
## var client = newHttpClient()
|
||||
## echo client.getContent("http://google.com")
|
||||
##
|
||||
|
|
@ -24,6 +25,7 @@
|
|||
## ``AsyncHttpClient``:
|
||||
##
|
||||
## .. code-block:: Nim
|
||||
## import httpClient
|
||||
## var client = newAsyncHttpClient()
|
||||
## echo await client.getContent("http://google.com")
|
||||
##
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue