std.mime
mime_type(filename) -> mime
filename
mime
Detect the MIME type of a file based on its extension
The match ignores the case of the extension: CLIP.MP4 is video/mp4. A name with no extension, or an unknown one, gives application/octet-stream.
CLIP.MP4
video/mp4
application/octet-stream