Searched refs:HttpProxyAgent (Results 1 – 4 of 4) sorted by relevance
12 var HttpProxyAgent = require('../'); variable75 new HttpProxyAgent();79 var agent = new HttpProxyAgent('http://127.0.0.1:' + proxyPort);85 var agent = new HttpProxyAgent(opts);91 var agent = new HttpProxyAgent({ port: proxyPort });95 var agent = new HttpProxyAgent({ port: proxyPort, protocol: 'http:' });99 var agent = new HttpProxyAgent({ port: proxyPort, protocol: 'https:' });103 var agent = new HttpProxyAgent({ port: proxyPort, protocol: 'https' });117 var agent = new HttpProxyAgent(proxy);145 var agent = new HttpProxyAgent(proxy);[all …]
17 module.exports = HttpProxyAgent;26 function HttpProxyAgent (opts) { class27 if (!(this instanceof HttpProxyAgent)) return new HttpProxyAgent(opts);52 inherits(HttpProxyAgent, Agent);60 HttpProxyAgent.prototype.callback = function connect (req, opts, fn) {
28 var HttpProxyAgent = require('http-proxy-agent');39 // create an instance of the `HttpProxyAgent` class with the proxy server information40 var agent = new HttpProxyAgent(proxy);
130 let HttpProxyAgent variable151 if (!HttpProxyAgent) {152 HttpProxyAgent = require('http-proxy-agent')155 return new HttpProxyAgent(popts)