okhttp / okhttp3 / MediaType / get

get

@JvmStatic fun get(string: String): MediaType

Returns a media type for string.

Exceptions

IllegalArgumentException - if string is not a well-formed media type.