MCPcopy Index your code
hub / github.com/TanStack/ai / jsonResponse

Function jsonResponse

packages/ai-sandbox-cloudflare/src/worker.ts:100–105  ·  view source on GitHub ↗
(body: unknown, status = 200)

Source from the content-addressed store, hash-verified

98}
99
100function jsonResponse(body: unknown, status = 200): Response {
101 return new Response(JSON.stringify(body), {
102 status,
103 headers: { 'content-type': 'application/json' },
104 })
105}
106
107/**
108 * Build the Worker fetch handler. `resolveCoordinator` maps `(env, threadId)` to

Callers 1

fetchFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected