ContentType.isType

bool isType(string type, string subtype)

Compares the given type and subtype with that of the given mime type object.

Parameters

typeMIME type to compare against
subtypeMIME subtype to compare against

Returns

true if the MIME types match or false otherwise. You may

use "*" in place of type and/or subtype as a wilcard.