Gio.content_type_from_mime_type
function content_type_from_mime_type(mime_type: String): String {
// Gjs wrapper for g_content_type_from_mime_type()
}
Tries to find a content type based on the mime type name.
Since 2.18
- mime_type
a mime type string
- Returns
Newly allocated string with content type or null. Free with GLib.free