MCPcopy Create free account
hub / github.com/github/copilot-sdk / sendJson

Function sendJson

nodejs/test/e2e/copilot_request_handler.e2e.test.ts:135–138  ·  view source on GitHub ↗
(res: ServerResponse, status: number, body: unknown)

Source from the content-addressed store, hash-verified

133}
134
135function sendJson(res: ServerResponse, status: number, body: unknown): void {
136 res.writeHead(status, { "content-type": "application/json" });
137 res.end(JSON.stringify(body));
138}
139
140async function drainBody(req: IncomingMessage): Promise<Buffer> {
141 const parts: Buffer[] = [];

Callers 1

startFakeUpstreamFunction · 0.85

Calls 1

endMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…