std.mime.mime_type

std.mime

mime_type(filename) -> mime

Detect the MIME type of a file based on its extension