Add proxy basic auth documentation (#20498)

This commit is contained in:
TerrorTrace
2022-10-05 17:50:27 +00:00
committed by GitHub
parent de3b438db4
commit 28c879c8bb

View File

@@ -197,6 +197,14 @@
## let myProxy = newProxy("http://myproxy.network")
## 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:
##
## .. code-block:: Nim