(response: http.ServerResponse, status: number, body: string)
| 62 | }; |
| 63 | |
| 64 | const writeText = (response: http.ServerResponse, status: number, body: string) => { |
| 65 | response.writeHead(status, { "content-type": "text/plain; charset=utf-8" }); |
| 66 | response.end(body); |
| 67 | }; |
| 68 | |
| 69 | const readRequestBody = ( |
| 70 | request: http.IncomingMessage, |