okhttp / okhttp3 / MediaType / type

type

val type: String

Returns the high-level media type, such as "text", "image", "audio", "video", or "application".