Add proxy basic auth documentation (#20498)

This commit is contained in:
TerrorTrace 2022-10-05 17:50:27 +00:00 • committed by GitHub
commit 28c879c8bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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