FilePath.contentTypeFromFileExtension

Guesses the media (aka mime) content type from the file extension for this path.

Only has a few things supported. Returns null if it doesn't know.

struct FilePath
string
contentTypeFromFileExtension
()

Meta

History

Moved from arsd.cgi to arsd.core.FilePath on October 28, 2024