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