MCPcopy Create free account
hub / github.com/Shinplex/rever / jsonResponse

Function jsonResponse

retool.ts:262–267  ·  view source on GitHub ↗
(obj: unknown, status = 200)

Source from the content-addressed store, hash-verified

260}
261
262function jsonResponse(obj: unknown, status = 200) {
263 return new Response(JSON.stringify(obj), {
264 status,
265 headers: { "Content-Type": "application/json" },
266 });
267}
268
269// Streaming helpers
270function sseStream(

Callers 1

handleRequestFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected