MCPcopy Create free account
hub / github.com/ColmapView/Colmapview.github.io / textResponse

Function textResponse

src/hooks/urlLoaderManifestFetch.test.ts:34–40  ·  view source on GitHub ↗
(data: string, init: ResponseInit = {})

Source from the content-addressed store, hash-verified

32}
33
34function textResponse(data: string, init: ResponseInit = {}): Response {
35 return new Response(data, {
36 status: 200,
37 headers: { 'Content-Type': 'text/html' },
38 ...init,
39 });
40}
41
42function missingResponse(): Response {
43 return new Response('', { status: 404, statusText: 'Missing' });

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected