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