mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
Adding support for http_proxy and https_proxy environment variables
This commit is contained in:
committed by
Nick Uraltsev
parent
96d7ac2a0c
commit
93ae90ae6e
@@ -299,7 +299,13 @@ These are the available config options for making requests. Only the `url` is re
|
||||
// and https requests, respectively, in node.js. This allows to configure options like
|
||||
// `keepAlive` that are not enabled by default.
|
||||
httpAgent: new http.Agent({ keepAlive: true }),
|
||||
httpsAgent: new https.Agent({ keepAlive: true })
|
||||
httpsAgent: new https.Agent({ keepAlive: true }),
|
||||
|
||||
// 'proxy' defines the hostname and port of the proxy server
|
||||
proxy: {
|
||||
host: '127.0.0.1',
|
||||
port: 9000
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user