MCPcopy Create free account
hub / github.com/Work-Fisher/code-claw / writeJson

Function writeJson

tools/model-gateway/server.mjs:720–724  ·  view source on GitHub ↗
(res, statusCode, data)

Source from the content-addressed store, hash-verified

718}
719
720function writeJson(res, statusCode, data) {
721 res.statusCode = statusCode
722 res.setHeader('content-type', 'application/json; charset=utf-8')
723 res.end(JSON.stringify(data))
724}
725
726async function readJson(req) {
727 const chunks = []

Callers 5

startGatewayServerFunction · 0.70
handleNonStreamFunction · 0.70
handleGeminiNonStreamFunction · 0.70
handleGeminiStreamFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected