(response: ServerResponse, status: number, message: string)
| 110 | } |
| 111 | |
| 112 | function sendStatus(response: ServerResponse, status: number, message: string): void { |
| 113 | response.writeHead(status, { |
| 114 | 'access-control-allow-origin': '*', |
| 115 | 'content-type': 'text/plain; charset=utf-8', |
| 116 | }); |
| 117 | response.end(message); |
| 118 | } |
| 119 | |
| 120 | async function startDatasetServer(rootPath: string): Promise<DatasetServer> { |
| 121 | const root = resolve(rootPath); |
no test coverage detected