mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
Adding support for no_proxy env variable (#1693)
* Adding support for no_proxy env variable * Adds support for the no_proxy environment variable commonly available with programs supporting the http_proxy/https_proxy environment variables. * Adds tests to test the no_proxy environment variable. * Adding documentation for the proxy env variables * Adds documentation to README.md for the supported, conventional http_proxy, https_proxy, and no_proxy environment variables.
This commit is contained in:
committed by
Emily Morehouse
parent
b9f68bdf00
commit
38de25257c
@@ -353,7 +353,11 @@ These are the available config options for making requests. Only the `url` is re
|
||||
httpAgent: new http.Agent({ keepAlive: true }),
|
||||
httpsAgent: new https.Agent({ keepAlive: true }),
|
||||
|
||||
// 'proxy' defines the hostname and port of the proxy server
|
||||
// 'proxy' defines the hostname and port of the proxy server.
|
||||
// You can also define your proxy using the conventional `http_proxy` and
|
||||
// `https_proxy` environment variables. If you are using environment variables
|
||||
// for your proxy configuration, you can also define a `no_proxy` environment
|
||||
// variable as a comma-separated list of domains that should not be proxied.
|
||||
// Use `false` to disable proxies, ignoring environment variables.
|
||||
// `auth` indicates that HTTP Basic auth should be used to connect to the proxy, and
|
||||
// supplies credentials.
|
||||
|
||||
Reference in New Issue
Block a user