mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-13 06:43:52 +00:00
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:
committed by
Dominik Picheta
parent
3c106541fa
commit
a0623a2356
@@ -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")
|
||||
##
|
||||
|
||||
Reference in New Issue
Block a user