Aller au contenu
Français

contentTypeFor

Ce contenu n’est pas encore disponible dans votre langue.

contentTypeFor(pathOrExt, overrides?): string

Defined in: src/http/MimeTypes.ts:82

Resolve a content-type from a path or bare extension. Text-ish types get ; charset=utf-8; unknown extensions fall back to application/octet-stream. overrides (ext → full content-type, taken verbatim) win over the defaults.

string

Readonly<Record<string, string>>

string