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:
Mandeep Singh 2019-01-26 09:29:25 -05:00 • committed by Dominik Picheta
commit a0623a2356

View file

@ -17,6 +17,7 @@
## ``http://google.com``: ## ``http://google.com``:
## ##
## .. code-block:: Nim ## .. code-block:: Nim
## import httpClient
## var client = newHttpClient() ## var client = newHttpClient()
## echo client.getContent("http://google.com") ## echo client.getContent("http://google.com")
## ##
@ -24,6 +25,7 @@
## ``AsyncHttpClient``: ## ``AsyncHttpClient``:
## ##
## .. code-block:: Nim ## .. code-block:: Nim
## import httpClient
## var client = newAsyncHttpClient() ## var client = newAsyncHttpClient()
## echo await client.getContent("http://google.com") ## echo await client.getContent("http://google.com")
## ##