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

Function getContentType

e2e/webgpu-bicycle.spec.ts:96–110  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

94}
95
96function getContentType(path: string): string {
97 switch (extname(path).toLowerCase()) {
98 case '.bin':
99 case '.ply':
100 case '.spz':
101 return 'application/octet-stream';
102 case '.jpg':
103 case '.jpeg':
104 return 'image/jpeg';
105 case '.png':
106 return 'image/png';
107 default:
108 return 'application/octet-stream';
109 }
110}
111
112function sendStatus(response: ServerResponse, status: number, message: string): void {
113 response.writeHead(status, {

Callers 1

startDatasetServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected