ContentType.getMimeType

string getMimeType()

Allocates a string buffer containing the type and subtype defined by the content_type.

Returns

an allocated string containing the type and subtype of the

content-type in the format: type/subtype.