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

Function start

src/utils/zipDownload.test.ts:11–16  ·  view source on GitHub ↗
(controller)

Source from the content-addressed store, hash-verified

9function createStreamedResponse(chunks: number[][], contentLength?: number): Response {
10 return new Response(new ReadableStream<Uint8Array>({
11 start(controller) {
12 for (const chunk of chunks) {
13 controller.enqueue(new Uint8Array(chunk));
14 }
15 controller.close();
16 },
17 }), {
18 status: 200,
19 headers: contentLength === undefined ? undefined : {

Callers

nothing calls this directly

Calls 1

closeMethod · 0.65

Tested by

no test coverage detected