mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-08 05:53:22 +00:00
Add proxy basic auth documentation (#20498)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user