Home
last modified time | relevance | path

Searched refs:createConnection (Results 1 – 25 of 136) sorted by relevance

123456

/third_party/node/test/parallel/
Dtest-http-createConnection.js33 http.get({ createConnection: fn }, (res) => { property
44 await commonHttpGet(createConnection);
60 function createConnection() { function
61 return net.createConnection(server.address().port, '127.0.0.1');
66 cb(null, net.createConnection(server.address().port, '127.0.0.1'));
71 const socket = net.createConnection(server.address().port, '127.0.0.1');
79 const socket = net.createConnection(server.address().port, '127.0.0.1');
Dtest-net-server-max-connections-close-makes-more-available.js20 function createConnection(index) { function
24 const connection = net.createConnection(server.address().port, function() {
71 createConnection(0)
72 .then(createConnection.bind(null, 1))
74 .then(createConnection.bind(null, 2))
75 .then(createConnection.bind(null, 3))
Dtest-net-pause-resume-connecting.js43 conn = net.createConnection(this.address().port, 'localhost');
49 conn = net.createConnection(this.address().port, 'localhost');
56 conn = net.createConnection(this.address().port, 'localhost');
63 conn = net.createConnection(this.address().port, 'localhost');
71 conn = net.createConnection(this.address().port, 'localhost');
Dtest-https-agent-create-connection.js57 const socket = agent.createConnection(options);
72 const socket = agent.createConnection(port, options);
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);
147 const socket = agent.createConnection(port, host, options);
Dtest-net-connect-options-path.js38 net.createConnection(serverPath, getConnectCb()).resume();
39 net.createConnection(serverPath)
50 net.createConnection({ path: serverPath }, getConnectCb()).resume();
51 net.createConnection({ path: serverPath })
Dtest-http-client-defaults.js8 const req = new ClientRequest({ createConnection: () => {} }); method
14 const req = new ClientRequest({ method: '', createConnection: () => {} }); method
20 const req = new ClientRequest({ path: '', createConnection: () => {} }); method
Dtest-http2-connect.js53 const createConnection = mustCall(() => socket); constant
54 const options = { createConnection }; field
87 const createConnection = mustCall(() => socket); constant
88 const options = { createConnection }; field
Dtest-net-pipe-connect-errors.js59 const notSocketClient = net.createConnection(emptyTxt, function() {
70 const noEntSocketClient = net.createConnection('no-ent-file', function() {
88 const accessClient = net.createConnection(common.PIPE, function() {
Dtest-http-generic-streams.js20 createConnection: common.mustCall(() => clientSide) property
45 createConnection: common.mustCall(() => clientSide), property
86 createConnection: common.mustCall(() => clientSide), property
126 createConnection: common.mustCall(() => clientSide), property
Dtest-http-upgrade-server.js83 const conn = net.createConnection(server.address().port);
121 const conn = net.createConnection(server.address().port);
145 const conn = net.createConnection(server.address().port);
Dtest-http-client-abort-no-agent.js10 createConnection(options, oncreate) { method
11 const socket = net.createConnection(options, oncreate);
Dtest-http-client-abort-unix-socket.js8 createConnection(options, oncreate) { method in Agent
9 const socket = super.createConnection(options, oncreate);
Dtest-http-header-badrequest.js5 const { createConnection } = require('net');
16 const c = createConnection(server.address().port);
Dtest-http-incoming-message-options.js12 createConnection(options) { method
14 return net.createConnection(options);
Dtest-http-server-destroy-socket-on-client-error.js10 const { createConnection } = require('net');
26 const socket = createConnection({
Dtest-http-client-abort-keep-alive-destroy-res.js9 createConnection(options, oncreate) { method in Agent
10 const socket = super.createConnection(options, oncreate);
Dtest-net-server-close.js57 net.createConnection(this.address().port);
58 net.createConnection(this.address().port);
Dtest-http-host-header-ipv6-fail.js25 return net.createConnection(options);
37 requests[i].createConnection =
Dtest-http-client-abort-keep-alive-queued-unix-socket.js9 createConnection(options, oncreate) { method in Agent
10 const socket = super.createConnection(options, oncreate);
Dtest-http-header-overflow.js7 const { createConnection } = require('net');
32 const c = createConnection(server.address().port);
Dtest-http-client-abort-keep-alive-queued-tcp-socket.js11 createConnection(options, oncreate) { method in Agent
12 const socket = super.createConnection(options, oncreate);
/third_party/node/benchmark/http/
Dcreate-clientrequest.js28 path: new URL(i).path, createConnection: noop property
41 result = new ClientRequest(options[i], { createConnection: noop }); property
49 result = new ClientRequest(data[i], { createConnection: noop }); property
/third_party/node/deps/npm/node_modules/socks/docs/examples/typescript/
DconnectExample.md11 The 'connect' command can be used via the SocksClient.createConnection() factory function as well a…
13 ### Using createConnection with async/await
15 Since SocksClient.createConnection returns a Promise, we can easily use async/await for flow contro…
37 const info = await SocksClient.createConnection(options);
78 ### Using createConnection with Promises
98 SocksClient.createConnection(options)
137 ### Using createConnection with callbacks
139 SocksClient.createConnection() optionally accepts a callback function as a second parameter.
161 SocksClient.createConnection(options, (err, info) => {
/third_party/node/deps/npm/node_modules/socks/docs/examples/javascript/
DconnectExample.md11 The 'connect' command can be used via the SocksClient.createConnection() factory function as well a…
13 ### Using createConnection with async/await
15 Since SocksClient.createConnection returns a Promise, we can easily use async/await for flow contro…
37 const info = await SocksClient.createConnection(options);
77 ### Using createConnection with Promises
97 SocksClient.createConnection(options)
135 ### Using createConnection with callbacks
137 SocksClient.createConnection() optionally accepts a callback function as a second parameter.
159 SocksClient.createConnection(options, (err, info) => {
/third_party/node/deps/npm/node_modules/socks/docs/
DmigratingFromV1.md12 - In v2, only the 'connect' command is supported via the factory SocksClient.createConnection funct…
13 - In v2, the factory SocksClient.createConnection function callback is called with a single object …
36 Socks.createConnection(options, function(err, socket, info) {
72 SocksClient.createConnection(options, function(err, result) {

123456