MCPcopy Index your code
hub / github.com/ColmapView/Colmapview.github.io / sendStatus

Function sendStatus

e2e/webgpu-bicycle.spec.ts:112–118  ·  view source on GitHub ↗
(response: ServerResponse, status: number, message: string)

Source from the content-addressed store, hash-verified

110}
111
112function 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
120async function startDatasetServer(rootPath: string): Promise<DatasetServer> {
121 const root = resolve(rootPath);

Callers 1

startDatasetServerFunction · 0.85

Calls 1

endMethod · 0.80

Tested by

no test coverage detected