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

Function onresponse

test/parallel/test-http-same-map.js:25–36  ·  view source on GitHub ↗
(n, req, res)

Source from the content-addressed store, hash-verified

23}
24
25function onresponse(n, req, res) {
26 res.resume();
27
28 if (n < 3) {
29 res.once('end', () => next(n + 1));
30 } else {
31 server.close();
32 }
33
34 onresponse.requests.push(req);
35 onresponse.responses.push(res);
36}
37onresponse.requests = [];
38onresponse.responses = [];
39

Callers 1

nextFunction · 0.70

Calls 5

nextFunction · 0.70
resumeMethod · 0.65
closeMethod · 0.65
onceMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…