MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / jsonResponse

Function jsonResponse

packages/ci-proxy-worker/src/index.ts:456–464  ·  view source on GitHub ↗
(value: unknown, status = 200)

Source from the content-addressed store, hash-verified

454}
455
456function jsonResponse(value: unknown, status = 200): Response {
457 return new Response(JSON.stringify(value), {
458 status,
459 headers: {
460 "Content-Type": JSON_CONTENT,
461 "Cache-Control": "no-store",
462 },
463 });
464}
465
466function sessionExpired(value: string | undefined): boolean {
467 if (!value) return false;

Callers 2

fetchFunction · 0.85
sessionMetadataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected