//okhttp/okhttp3/MediaType/Companion/toMediaType
toMediaType¶
[common]\ expect fun String.toMediaType(): MediaType
Returns a media type for this string.
Throws¶
kotlin.IllegalArgumentException | if this is not a well-formed media type. |
[jvm, nonJvm]\ [jvm]\
@JvmName(name = "get")
actual fun String.toMediaType(): MediaType
[nonJvm]\ actual fun String.toMediaType(): MediaType