MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / contentTypeFor

Function contentTypeFor

src/ui-server/static.ts:42–44  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

40
41/** The content type to send for a file, by extension. */
42export function contentTypeFor(filePath: string): string {
43 return CONTENT_TYPES[path.extname(filePath).toLowerCase()] ?? 'application/octet-stream';
44}
45
46/**
47 * Cache policy.

Callers 2

ui-server.test.tsFile · 0.90
sendFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected