MCPcopy Index your code
hub / github.com/nodejs/node / makeReq

Function makeReq

test/sequential/test-http-keepalive-maxsockets.js:82–98  ·  view source on GitHub ↗
(i, cb)

Source from the content-addressed store, hash-verified

80 }
81
82 function makeReq(i, cb) {
83 http.request({
84 port: server.address().port,
85 path: `/${i}`,
86 agent: agent,
87 }, common.mustCall((res) => {
88 let data = '';
89 res.setEncoding('ascii');
90 res.on('data', function(c) {
91 data += c;
92 });
93 res.on('end', common.mustCall(() => {
94 assert.strictEqual(data, `/${i}`);
95 cb();
96 }));
97 })).end();
98 }
99
100 function count(sockets) {
101 return Object.keys(sockets).reduce(function(n, name) {

Callers 1

makeReqsFunction · 0.70

Calls 6

cbFunction · 0.70
requestMethod · 0.65
addressMethod · 0.65
endMethod · 0.45
setEncodingMethod · 0.45
onMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…