asMimeType

fun <Error class: unknown class>.asMimeType(): MimeType

Converts a ContentType instance to its corresponding MIME type string representation.

Return

A string representation of the MIME type in the format "type/subtype".