MCPcopy
hub / github.com/axios/axios / writeNext

Function writeNext

tests/unit/adapters/fetch.test.js:1541–1547  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1539 const chunk = 'B'.repeat(1024);
1540 let sent = 0;
1541 const writeNext = () => {
1542 if (sent >= 8) {
1543 return res.end();
1544 }
1545 sent++;
1546 res.write(chunk, writeNext);
1547 };
1548 writeNext();
1549 },
1550 { port: SERVER_PORT }

Callers 1

fetch.test.jsFile · 0.85

Calls 2

endMethod · 0.80
writeMethod · 0.80

Tested by

no test coverage detected