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

Function doRequest

benchmark/http2/headers.js:39–51  ·  view source on GitHub ↗
(remaining)

Source from the content-addressed store, hash-verified

37 });
38
39 function doRequest(remaining) {
40 const req = client.request(headersObject);
41 req.resume();
42 req.on('end', () => {
43 if (remaining > 0) {
44 doRequest(remaining - 1);
45 } else {
46 bench.end(n);
47 server.close();
48 client.destroy();
49 }
50 });
51 }
52
53 bench.start();
54 doRequest(n);

Callers 1

mainFunction · 0.70

Calls 6

requestMethod · 0.65
resumeMethod · 0.65
closeMethod · 0.65
onMethod · 0.45
endMethod · 0.45
destroyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…