NODE_USE_ENV_PROXY=1
稳定性: 1.1 - 积极开发
¥Stability: 1.1 - Active Development
启用后,Node.js 会在启动期间解析 HTTP_PROXY
、HTTPS_PROXY
和 NO_PROXY
环境变量,并通过指定的代理隧道传输请求。
¥When enabled, Node.js parses the HTTP_PROXY
, HTTPS_PROXY
and NO_PROXY
environment variables during startup, and tunnels requests over the
specified proxy.
目前,这仅影响通过 fetch()
发送的请求。其他内置 http
和 https
方法的支持正在进行中。
¥This currently only affects requests sent over fetch()
. Support for other
built-in http
and https
methods is under way.