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

Function next

test/parallel/test-http-max-http-headers.js:61–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59 next();
60
61 function next() {
62 if (socket.destroyed) {
63 console.log('socket was destroyed early, data left to write:',
64 array.join('').length);
65 return;
66 }
67
68 const chunk = array.shift();
69
70 if (chunk) {
71 console.log('writing chunk of size', chunk.length);
72 socket.write(chunk, next);
73 } else {
74 socket.end();
75 }
76 }
77}
78
79function test1() {

Callers 1

writeHeadersFunction · 0.70

Calls 5

logMethod · 0.45
joinMethod · 0.45
shiftMethod · 0.45
writeMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected