MCPcopy Index your code
hub / github.com/MrgSub/opencode-debug / jsonResponse

Function jsonResponse

src/index.ts:148–153  ·  view source on GitHub ↗
(data: object, status = 200)

Source from the content-addressed store, hash-verified

146};
147
148function jsonResponse(data: object, status = 200): Response {
149 return new Response(JSON.stringify(data), {
150 status,
151 headers: { "Content-Type": "application/json", ...corsHeaders },
152 });
153}
154
155function createDebugServer(
156 port: number,

Callers 1

fetchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected