MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / json

Function json

telemetry-worker/src/rollup.ts:1542–1546  ·  view source on GitHub ↗
(body: unknown, status = 200)

Source from the content-addressed store, hash-verified

1540// ---------------------------------------------------------------------------
1541
1542const json = (body: unknown, status = 200): Response =>
1543 new Response(JSON.stringify(body), {
1544 status,
1545 headers: { 'content-type': 'application/json; charset=utf-8' },
1546 });
1547
1548/** Constant-time over digests, so neither the length nor a prefix of the token leaks. */
1549async function tokenMatches(provided: string, expected: string): Promise<boolean> {

Callers 1

handleAdminRollupFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected