/third_party/node/deps/npm/node_modules/socks-proxy-agent/node_modules/agent-base/test/ |
D | test.js | 37 info.agent = new MyAgent(); 43 var agent = new Agent({ timeout: 1000 }); 44 assert.equal(1000, agent.timeout); 47 var agent = new Agent(function() {}, { timeout: 1000 }); 48 assert.equal(1000, agent.timeout); 51 var agent = new Agent({ 56 agent.callback = function(req, opts, fn) { 68 agent: agent property 76 var agent = new Agent(); 77 agent.callback = function() { [all …]
|
/third_party/node/deps/npm/node_modules/agent-base/test/ |
D | test.js | 37 info.agent = new MyAgent(); 43 var agent = new Agent({ timeout: 1000 }); 44 assert.equal(1000, agent.timeout); 47 var agent = new Agent(function() {}, { timeout: 1000 }); 48 assert.equal(1000, agent.timeout); 51 var agent = new Agent({ 56 agent.callback = function(req, opts, fn) { 68 agent: agent property 76 var agent = new Agent(); 77 agent.callback = function() { [all …]
|
/third_party/node/deps/npm/node_modules/http-proxy-agent/test/ |
D | test.js | 79 var agent = new HttpProxyAgent('http://127.0.0.1:' + proxyPort); 80 assert.equal('127.0.0.1', agent.proxy.host); 81 assert.equal(proxyPort, agent.proxy.port); 85 var agent = new HttpProxyAgent(opts); 86 assert.equal('127.0.0.1', agent.proxy.host); 87 assert.equal(proxyPort, agent.proxy.port); 91 var agent = new HttpProxyAgent({ port: proxyPort }); 92 assert.equal(false, agent.secureProxy); 95 var agent = new HttpProxyAgent({ port: proxyPort, protocol: 'http:' }); 96 assert.equal(false, agent.secureProxy); [all …]
|
/third_party/node/test/parallel/ |
D | test-http-agent-scheduling.js | 14 function makeRequest(url, agent, callback) { argument 16 .request(url, { agent }, (res) => { field 29 function bulkRequest(url, agent, done) { argument 31 let count = agent.maxSockets; 33 for (let i = 0; i < agent.maxSockets; i++) { 34 makeRequest(url, agent, callback); 52 const agent = new http.Agent({ 57 bulkRequest(url, agent, (ports) => { 58 makeRequest(url, agent, (port) => { 60 makeRequest(url, agent, (port) => { [all …]
|
D | test-http-agent-keepalive.js | 30 const agent = new Agent({ constant 53 agent: agent, property 60 assert.strictEqual(agent.sockets[name].length, 1); 61 assert.strictEqual(agent.freeSockets[name], undefined); 71 assert.strictEqual(agent.sockets[name].length, 1); 72 assert.strictEqual(agent.freeSockets[name], undefined); 74 assert.strictEqual(agent.sockets[name], undefined); 75 assert.strictEqual(agent.freeSockets[name].length, 1); 89 assert.strictEqual(agent.sockets[name].length, 1); 90 assert.strictEqual(agent.freeSockets[name], undefined); [all …]
|
D | test-http-keep-alive.js | 35 const agent = new http.Agent({ maxSockets: 1 }); constant 40 name = agent.getName({ port: this.address().port }); 42 path: '/', headers: headers, port: this.address().port, agent: agent property 44 assert.strictEqual(agent.sockets[name].length, 1); 45 assert.strictEqual(agent.requests[name].length, 2); 50 path: '/', headers: headers, port: this.address().port, agent: agent property 52 assert.strictEqual(agent.sockets[name].length, 1); 53 assert.strictEqual(agent.requests[name].length, 1); 58 path: '/', headers: headers, port: this.address().port, agent: agent property 61 assert.strictEqual(agent.sockets[name].length, 1); [all …]
|
D | test-http-abort-queued.js | 43 const agent = new http.Agent({ maxSockets: 1 }); constant 44 assert.strictEqual(Object.keys(agent.sockets).length, 0); 51 agent: agent property 56 assert.strictEqual(Object.keys(agent.sockets).length, 1); 57 assert.strictEqual(Object.keys(agent.requests).length, 0); 64 agent: agent property 66 assert.strictEqual(Object.keys(agent.sockets).length, 1); 67 assert.strictEqual(Object.keys(agent.requests).length, 1); 79 assert.strictEqual(Object.keys(agent.sockets).length, 1); 80 assert.strictEqual(Object.keys(agent.requests).length, 1); [all …]
|
D | test-http-agent-timeout.js | 10 const agent = new http.Agent({ keepAlive: true }); constant 18 http.get({ port: server.address().port, agent }) field 24 http.get({ port: server.address().port, agent }) field 28 agent.destroy(); 39 const agent = new http.Agent({ keepAlive: true, timeout: 50 }); constant 46 http.get({ port: server.address().port, agent }) field 53 http.get({ port: server.address().port, agent }) field 57 agent.destroy(); 69 const agent = new http.Agent({ keepAlive: true }); constant 77 http.get({ port: server.address().port, agent }) field [all …]
|
D | test-http-keep-alive-close-on-header.js | 40 const agent = new http.Agent({ maxSockets: 1 }); 41 const name = agent.getName({ port: this.address().port }); 47 agent: agent property 49 assert.strictEqual(agent.sockets[name].length, 1); 64 agent: agent property 66 assert.strictEqual(agent.sockets[name].length, 1); 80 agent: agent property 83 assert.strictEqual(agent.sockets[name].length, 1);
|
D | test-http-addrequest-localaddress.js | 9 const agent = require('http').globalAgent; constant 16 agent.maxSockets = 0; 20 agent.addRequest(req, 'localhost', 8080, '127.0.0.1'); 21 assert.strictEqual(Object.keys(agent.requests).length, 1); 23 Object.keys(agent.requests)[0], 28 agent.addRequest(req, { 34 assert.strictEqual(Object.keys(agent.requests).length, 1); 36 Object.keys(agent.requests)[0],
|
D | test-http-keepalive-override.js | 10 const agent = http.Agent({ constant 16 const keepSocketAlive = agent.keepSocketAlive; 17 const reuseSocket = agent.reuseSocket; 21 agent.keepSocketAlive = common.mustCall((socket) => { 29 return keepSocketAlive.call(agent, socket); 36 agent.reuseSocket = common.mustCall((socket, req) => { 40 return reuseSocket.call(agent, socket, req); 47 agent, property
|
D | test-http-agent-getname.js | 10 const agent = new http.Agent(); constant 14 agent.getName({ 23 agent.getName({}), 29 agent.getName({ 40 agent.getName({ 47 assert.strictEqual(agent.getName({ family }), 'localhost::'); 50 assert.strictEqual(agent.getName({ family }), `localhost:::${family}`);
|
D | test-https-agent-create-connection.js | 11 const agent = new https.Agent(); constant 54 _agentKey: agent.getName({ port, host }) 57 const socket = agent.createConnection(options); 70 _agentKey: agent.getName({ port, host }) 72 const socket = agent.createConnection(port, options); 85 _agentKey: agent.getName({ port, host }) 87 const socket = agent.createConnection(port, host, options); 101 const socket = agent.createConnection(port, host, options); 113 const socket = agent.createConnection(port, host, options); 128 const socket = agent.createConnection(port, host, options); [all …]
|
D | test-http-agent-maxtotalsockets.js | 35 const agent = new http.Agent({ 55 agent.destroy(); 65 agent, property 71 for (const key of Object.keys(agent.sockets)) { 72 assert(agent.sockets[key].length <= maxSockets); 83 for (const key of Object.keys(agent.sockets)) { 84 num += agent.sockets[key].length; 91 for (const key of Object.keys(agent.requests)) { 92 num += agent.requests[key].length;
|
/third_party/node/deps/npm/node_modules/http-proxy-agent/ |
D | History.md | 14 * update to "agent-base" v4 15 * rename http-proxy-agent.js to index.js 22 * http-proxy-agent: use %o debug() formatter 23 * http-proxy-agent: remove `defaults` merging logic 24 * package: update "agent-base" to v2 27 * README: add note about node-https-proxy-agent 52 * http-proxy-agent: fix using the agent after the first tick of creating the ClientRequest 53 * http-proxy-agent: use "debug" module 59 * https-proxy-agent: allow "https" without trailing colon 64 * http-proxy-agent: delete the `port` if it matches default port [all …]
|
/third_party/node/test/sequential/ |
D | test-http-max-sockets.js | 35 const agent = http.globalAgent; constant 36 agent.maxSockets = 10; 43 const addrString = agent.getName({ host: '127.0.0.1', port: common.PORT }); 59 assert.strictEqual(req.agent, agent); 62 `Socket: ${agent.sockets[addrString].length}/${ 63 agent.maxSockets} queued: ${ 64 agent.requests[addrString] ? agent.requests[addrString].length : 0}`); 66 const agentRequests = agent.requests[addrString] ? 67 agent.requests[addrString].length : 0;
|
/third_party/node/deps/npm/node_modules/socks-proxy-agent/node_modules/agent-base/ |
D | README.md | 1 agent-base 4 …https://travis-ci.org/TooTallNate/node-agent-base.svg?branch=master)](https://travis-ci.org/TooTal… 12 Here's some more interesting uses of `agent-base`. 15 …* [`http-proxy-agent`][http-proxy-agent]: An HTTP(s) proxy `http.Agent` implementation for HTTP en… 16 …* [`https-proxy-agent`][https-proxy-agent]: An HTTP(s) proxy `http.Agent` implementation for HTTPS… 17 …* [`pac-proxy-agent`][pac-proxy-agent]: A PAC file proxy `http.Agent` implementation for HTTP and … 18 …* [`socks-proxy-agent`][socks-proxy-agent]: A SOCKS (v4a) proxy `http.Agent` implementation for HT… 27 $ npm install agent-base 35 for every HTTP request (i.e. the equivalent of `agent: false` option): 42 var agent = require('agent-base'); [all …]
|
/third_party/node/deps/npm/node_modules/agent-base/ |
D | README.md | 1 agent-base 4 …https://travis-ci.org/TooTallNate/node-agent-base.svg?branch=master)](https://travis-ci.org/TooTal… 12 Here's some more interesting uses of `agent-base`. 15 …* [`http-proxy-agent`][http-proxy-agent]: An HTTP(s) proxy `http.Agent` implementation for HTTP en… 16 …* [`https-proxy-agent`][https-proxy-agent]: An HTTP(s) proxy `http.Agent` implementation for HTTPS… 17 …* [`pac-proxy-agent`][pac-proxy-agent]: A PAC file proxy `http.Agent` implementation for HTTP and … 18 …* [`socks-proxy-agent`][socks-proxy-agent]: A SOCKS (v4a) proxy `http.Agent` implementation for HT… 27 $ npm install agent-base 35 for every HTTP request (i.e. the equivalent of `agent: false` option): 42 var agent = require('agent-base'); [all …]
|
/third_party/python/Lib/test/ |
D | test_robotparser.py | 14 agent = 'test_robotparser' variable in BaseRobotTest 26 agent, url = url 27 return agent, url 28 return self.agent, url 32 agent, url = self.get_agent_and_url(url) 33 with self.subTest(url=url, agent=agent): 34 self.assertTrue(self.parser.can_fetch(agent, url)) 38 agent, url = self.get_agent_and_url(url) 39 with self.subTest(url=url, agent=agent): 40 self.assertFalse(self.parser.can_fetch(agent, url)) [all …]
|
/third_party/node/deps/npm/node_modules/https-proxy-agent/ |
D | History.md | 24 * rename https-proxy-agent.js to index.js 26 * update `agent-base` to v4 34 * https-proxy-agent: add support for proxy "headers" 39 * upgrade to "agent-base" v2 API 68 * https-proxy-agent: fix debug() call 74 * https-proxy-agent: allow "https" without trailing colon 81 * https-proxy-agent: create the proxy socket connection first 82 * https-proxy-agent: delete `pathname` from the proxy opts as well 83 * https-proxy-agent: remove dead "end"-emitting code 88 * https-proxy-agent: use "debug" module [all …]
|
/third_party/node/deps/npm/node_modules/socks-proxy-agent/test/ |
D | test.js | 80 var agent = new SocksProxyAgent('socks://127.0.0.1:' + socksPort); 81 assert.equal('127.0.0.1', agent.proxy.host); 82 assert.equal(socksPort, agent.proxy.port); 86 var agent = new SocksProxyAgent(opts); 87 assert.equal('127.0.0.1', agent.proxy.host); 88 assert.equal(socksPort, agent.proxy.port); 100 var agent = new SocksProxyAgent('socks://127.0.0.1:' + socksPort); 102 opts.agent = agent; 125 var agent = new SocksProxyAgent('socks://127.0.0.1:' + socksPort); 127 opts.agent = agent;
|
/third_party/node/deps/npm/node_modules/tunnel-agent/ |
D | index.js | 20 var agent = new TunnelingAgent(options) 21 agent.request = http.request 22 return agent 26 var agent = new TunnelingAgent(options) 27 agent.request = http.request 28 agent.createSocket = createSecureSocket 29 agent.defaultPort = 443 30 return agent 34 var agent = new TunnelingAgent(options) 35 agent.request = https.request [all …]
|
/third_party/gstreamer/gstplugins_bad/ext/webrtc/ |
D | nicetransport.c | 174 NiceAgent *agent = NULL; in gst_webrtc_nice_transport_update_buffer_size() local 178 g_object_get (nice->stream->ice, "agent", &agent, NULL); in gst_webrtc_nice_transport_update_buffer_size() 179 g_assert (agent != NULL); in gst_webrtc_nice_transport_update_buffer_size() 181 sockets = nice_agent_get_sockets (agent, nice->stream->stream_id, 1); in gst_webrtc_nice_transport_update_buffer_size() 183 g_object_unref (agent); in gst_webrtc_nice_transport_update_buffer_size() 211 g_object_unref (agent); in gst_webrtc_nice_transport_update_buffer_size() 216 _on_new_selected_pair (NiceAgent * agent, guint stream_id, in _on_new_selected_pair() argument 235 _on_component_state_changed (NiceAgent * agent, guint stream_id, in _on_component_state_changed() argument 265 NiceAgent *agent; in gst_webrtc_nice_transport_constructed() local 268 g_object_get (nice->stream->ice, "agent", &agent, NULL); in gst_webrtc_nice_transport_constructed() [all …]
|
/third_party/node/deps/npm/node_modules/socks-proxy-agent/ |
D | History.md | 5 * update "agent-base" to v4.1.0 12 * rename `socks-proxy-agent.js` to `index.js` 35 * upgrade to "agent-base" v2 API 42 * socks-proxy-agent: cast `port` to a Number 76 * socks-proxy-agent: pass `secure` flag when no `new` 77 * socks-proxy-agent: small code cleanup 83 * socks-proxy-agent: properly mix in the proxy options 84 * socks-proxy-agent: coerce the `secureEndpoint` into a Boolean 85 * socks-proxy-agent: use "extend" module 86 * socks-proxy-agent: update to "agent-base" v1 API [all …]
|
D | README.md | 1 socks-proxy-agent 4 …i.org/TooTallNate/node-socks-proxy-agent.svg?branch=master)](https://travis-ci.org/TooTallNate/nod… 19 $ npm install socks-proxy-agent 31 var SocksProxyAgent = require('socks-proxy-agent'); 43 var agent = new SocksProxyAgent(proxy); 44 opts.agent = agent; 57 var SocksProxyAgent = require('socks-proxy-agent'); 69 var agent = new SocksProxyAgent(proxy); 70 opts.agent = agent; 82 var SocksProxyAgent = require('socks-proxy-agent'); [all …]
|