MCPcopy Create free account
hub / github.com/nodejs/node / makeRequest

Function makeRequest

test/parallel/test-http-agent-domain-reused-gc.js:62–68  ·  view source on GitHub ↗
(cb)

Source from the content-addressed store, hash-verified

60const agent = new TestAgent({ keepAlive: true, maxSockets: 1 });
61
62function makeRequest(cb) {
63 const req = http.request({ agent }, common.mustCall((res) => {
64 res.resume();
65 res.on('end', cb);
66 }));
67 req.end('');
68}
69
70// The actual test starts here:
71

Calls 4

requestMethod · 0.65
resumeMethod · 0.65
onMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected