Function FilePath.contentTypeFromFileExtension
Guesses the media (aka mime) content type from the file extension for this path.
string contentTypeFromFileExtension();
Only has a few things supported. Returns null if it doesn't know.
History
Moved from arsd.cgi to arsd.core.FilePath on October 28, 2024