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

Function buildResponse

src/test/builders/browserFakes.ts:406–427  ·  view source on GitHub ↗
({
  body = null,
  headers,
  status = 200,
  statusText,
  blob,
}: ResponseBuilderOptions = {})

Source from the content-addressed store, hash-verified

404}
405
406export function buildResponse({
407 body = null,
408 headers,
409 status = 200,
410 statusText,
411 blob,
412}: ResponseBuilderOptions = {}): Response {
413 const response = new Response(body, {
414 headers,
415 status,
416 statusText,
417 });
418
419 if (blob) {
420 Object.defineProperty(response, 'blob', {
421 configurable: true,
422 value: blob,
423 });
424 }
425
426 return response;
427}
428
429export function buildAnchorElement({
430 href = '',

Callers 6

okImageResponseFunction · 0.90
createResponseFunction · 0.90
builders.test.tsFile · 0.85

Calls

no outgoing calls

Tested by 2

okImageResponseFunction · 0.72
createResponseFunction · 0.72