ContentType.getMimeType

Gets the mime type for the content type, if one is registered.

struct ContentType
static
string
getMimeType
(
string type
)

Parameters

type string

a content type string

Return Value

Type: string

the registered mime type for the given @type, or %NULL if unknown; free with g_free().

Meta