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

Function send

benchmark/http/chunked.js:25–31  ·  view source on GitHub ↗
(left)

Source from the content-addressed store, hash-verified

23
24 const server = http.createServer((req, res) => {
25 function send(left) {
26 if (left === 0) return res.end();
27 res.write(chunk);
28 setTimeout(() => {
29 send(left - 1);
30 }, 0);
31 }
32 send(n);
33 });
34

Callers 4

mainFunction · 0.70
sendMessageMethod · 0.50
SendMessageFunction · 0.50

Calls 3

setTimeoutFunction · 0.50
endMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…