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

Function createResponse

src/utils/zipValidation.test.ts:11–16  ·  view source on GitHub ↗
(status: number, contentLength?: string)

Source from the content-addressed store, hash-verified

9type FetchImpl = NonNullable<ZipUrlValidationOptions['fetchImpl']>;
10
11function createResponse(status: number, contentLength?: string): Response {
12 return buildResponse({
13 status,
14 headers: contentLength === undefined ? undefined : { 'content-length': contentLength },
15 });
16}
17
18describe('zip validation', () => {
19 afterEach(() => {

Callers 1

Calls 1

buildResponseFunction · 0.90

Tested by

no test coverage detected