okhttp / okhttp3 / MediaType / type

type

fun type(): String

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

val type: String