MCPcopy Create free account
hub / github.com/anomalyco/opencode / jsonResponse

Function jsonResponse

packages/opencode/test/installation/installation.test.ts:47–52  ·  view source on GitHub ↗
(body: unknown)

Source from the content-addressed store, hash-verified

45}
46
47function jsonResponse(body: unknown) {
48 return new Response(JSON.stringify(body), {
49 status: 200,
50 headers: { "content-type": "application/json" },
51 })
52}
53
54function testLayer(
55 httpHandler: (request: HttpClientRequest.HttpClientRequest) => Response,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected