CONTENT_TYPESconstconst CONTENT_TYPES: Readonly<Record<string, string>>The extensions the server knows, lower case, without the dot.
The content types by extension: a small typed table the server reads and never grows by itself. What it does not name is application/octet-stream, and a text that is not a name is that too.
import { contentTypeOf } from "./mime.ts";
contentTypeOf("report.pdf"); // "application/pdf"
contentTypeOf("noextension"); // "application/octet-stream"CONTENT_TYPESconstconst CONTENT_TYPES: Readonly<Record<string, string>>The extensions the server knows, lower case, without the dot.
contentTypeOffunctionfunction contentTypeOf(name: string): stringThe content type of a name: by its last extension, in lower case.