MCPcopy Index your code
hub / github.com/ColmapView/Colmapview.github.io / start

Function start

src/utils/urlUtils.test.ts:366–369  ·  view source on GitHub ↗
(controller)

Source from the content-addressed store, hash-verified

364 function streamingResponse(chunks: Uint8Array[], total: number): Response {
365 const body = new ReadableStream<Uint8Array>({
366 start(controller) {
367 for (const chunk of chunks) controller.enqueue(chunk);
368 controller.close();
369 },
370 });
371 return new Response(body, { status: 200, headers: { 'content-length': String(total) } });
372 }

Callers

nothing calls this directly

Calls 1

closeMethod · 0.65

Tested by

no test coverage detected