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