(response: http.ServerResponse, status: number, body: string)
| 56 | }; |
| 57 | |
| 58 | const writeText = (response: http.ServerResponse, status: number, body: string) => { |
| 59 | response.writeHead(status, { "content-type": "text/plain; charset=utf-8" }); |
| 60 | response.end(body); |
| 61 | }; |
| 62 | |
| 63 | const readRequestBody = ( |
| 64 | request: http.IncomingMessage, |