Add proxy basic auth documentation (#20498)
This commit is contained in:
parent
de3b438db4
commit
28c879c8bb
1 changed files with 8 additions and 0 deletions
|
|
@ -197,6 +197,14 @@
|
||||||
## let myProxy = newProxy("http://myproxy.network")
|
## let myProxy = newProxy("http://myproxy.network")
|
||||||
## let client = newHttpClient(proxy = myProxy)
|
## let client = newHttpClient(proxy = myProxy)
|
||||||
##
|
##
|
||||||
|
## Use proxies with basic authentication:
|
||||||
|
##
|
||||||
|
## .. code-block:: Nim
|
||||||
|
## import std/httpclient
|
||||||
|
##
|
||||||
|
## let myProxy = newProxy("http://myproxy.network", auth="user:password")
|
||||||
|
## let client = newHttpClient(proxy = myProxy)
|
||||||
|
##
|
||||||
## Get Proxy URL from environment variables:
|
## Get Proxy URL from environment variables:
|
||||||
##
|
##
|
||||||
## .. code-block:: Nim
|
## .. code-block:: Nim
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue