ContentType.isMimeType

Determines if type is a subset of mime_type. Convenience wrapper around Content.typeIsA.

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