MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / start

Function start

packages/cloudflare/test/request.test.ts:57–61  ·  view source on GitHub ↗
(controller)

Source from the content-addressed store, hash-verified

55 test('handles streaming responses correctly', async () => {
56 const stream = new ReadableStream({
57 start(controller) {
58 controller.enqueue(new TextEncoder().encode('chunk1'));
59 controller.enqueue(new TextEncoder().encode('chunk2'));
60 controller.close();
61 },
62 });
63 const streamingResponse = new Response(stream);
64

Callers

nothing calls this directly

Calls 3

encodeMethod · 0.80
enqueueMethod · 0.65
closeMethod · 0.65

Tested by

no test coverage detected