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

Function json

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

Source from the content-addressed store, hash-verified

538// ---------------------------------------------------------------------------
539
540const json = (body: unknown, status = 200): Response =>
541 new Response(JSON.stringify(body), {
542 status,
543 headers: { 'content-type': 'application/json; charset=utf-8' },
544 });
545
546/** Constant-time over digests, so neither the length nor a prefix of the token leaks. */
547async function tokenMatches(provided: string, expected: string): Promise<boolean> {

Callers 1

handleAdminRollupFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected