(req: http.IncomingMessage, cb: (body: string) => void)
| 4963 | } |
| 4964 | |
| 4965 | private readBody(req: http.IncomingMessage, cb: (body: string) => void): void { |
| 4966 | let body = ""; |
| 4967 | req.on("data", (chunk: Buffer) => { body += chunk.toString(); }); |
| 4968 | req.on("end", () => cb(body)); |
| 4969 | } |
| 4970 | |
| 4971 | private jsonResponseAndRestart( |
| 4972 | res: http.ServerResponse, |
no test coverage detected