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

Function writeJson

scripts/smoke-compatible-shell.mjs:128–133  ·  view source on GitHub ↗
(res, data)

Source from the content-addressed store, hash-verified

126}
127
128function writeJson(res, data) {
129 res.writeHead(200, {
130 'content-type': 'application/json; charset=utf-8',
131 })
132 res.end(JSON.stringify(data))
133}
134
135async function readJson(req) {
136 const chunks = []

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected