MCPcopy Create free account
hub / github.com/callstack/agent-device / sendJson

Function sendJson

src/daemon/upload-http.ts:211–215  ·  view source on GitHub ↗
(res: http.ServerResponse, body: Record<string, unknown>)

Source from the content-addressed store, hash-verified

209}
210
211function sendJson(res: http.ServerResponse, body: Record<string, unknown>): void {
212 res.statusCode = 200;
213 res.setHeader('content-type', 'application/json');
214 res.end(JSON.stringify(body));
215}
216
217function sendUploadedArtifactResponse(
218 res: http.ServerResponse,

Callers 2

handleUploadPreflightFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…