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