var HttpsProxyAgent = require('https-proxy-agent');
this.agent = new HttpsProxyAgent("http://example.proxy.com");
但是我还需要添加一组 node.js 原始代理设置。
http.Agent({ keepAlive: true });
我没有看到 httpsproxyagent 的选项来设置它,因为 https-proxy-agent 派生自 agent-base
。有没有办法使用不同的 node.js 模块来实现这一点?
最佳答案
关于带有代理的 node.js http 代理,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43913977/