okhttp / okhttp3 / MediaType / toString

toString

fun toString(): String

Returns the encoded media type, like "text/plain; charset=utf-8", appropriate for use in a Content-Type header.