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