okhttp / okhttp3 / MediaType / parse

parse

@JvmStatic fun parse(string: String): MediaType?

Returns a media type for string, or null if string is not a well-formed media type.