ContentType.isMimeType

Determines if @type is a subset of @mime_type. Convenience wrapper around g_content_type_is_a().

struct ContentType
static
bool
isMimeType
(
string type
,
string mimeType
)

Parameters

type string

a content type string

mimeType string

a mime type string

Return Value

Type: bool

%TRUE if @type is a kind of @mime_type, %FALSE otherwise.

Meta

Since

2.52