getMimeType

@InternalCoilApi
fun getMimeType(url: String, contentType: String?): String?

Parse the response's content-type header.

"text/plain" is often used as a default/fallback MIME type. Attempt to guess a better MIME type from the file extension.