【发布时间】:2021-01-28 17:20:20
【问题描述】:
var HttpsProxyAgent = require('https-proxy-agent');
this.agent = new HttpsProxyAgent("http://example.proxy.com");
但是我还需要添加一个 set node.js 原始代理设置。
http.Agent({ keepAlive: true });
我没有看到带有 httpsproxyagent 的选项来设置它,因为 https-proxy-agent 派生自 agent-base。有没有办法使用不同的 node.js 模块来实现这一点?
【问题讨论】:
标签: node.js node-modules