MCPcopy
hub / github.com/axios/axios / start

Function start

tests/smoke/bun/tests/progress.smoke.test.ts:16–20  ·  view source on GitHub ↗
(controller)

Source from the content-addressed store, hash-verified

14 const fetch = async () => {
15 const stream = new ReadableStream({
16 start(controller) {
17 controller.enqueue(new TextEncoder().encode('ab'));
18 controller.enqueue(new TextEncoder().encode('cd'));
19 controller.close();
20 },
21 });
22
23 return new Response(stream, {

Callers

nothing calls this directly

Calls 1

encodeMethod · 0.80

Tested by

no test coverage detected