- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for commonToMediaType (0.18 sec)
-
okhttp/src/main/kotlin/okhttp3/internal/-MediaTypeCommon.kt
private val PARAMETER = Regex(";\\s*(?:$TOKEN=(?:$TOKEN|$QUOTED))?") /** * Returns a media type for this string. * * @throws IllegalArgumentException if this is not a well-formed media type. */ internal fun String.commonToMediaType(): MediaType { val typeSubtype: MatchResult = TYPE_SUBTYPE.matchAtPolyfill(this, 0) ?: throw IllegalArgumentException("No subtype found for: \"$this\"") val type = typeSubtype.groupValues[1].lowercase()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 3.1K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/MediaType.kt
*/ package okhttp3 import java.nio.charset.Charset import okhttp3.internal.commonEquals import okhttp3.internal.commonHashCode import okhttp3.internal.commonParameter import okhttp3.internal.commonToMediaType import okhttp3.internal.commonToMediaTypeOrNull import okhttp3.internal.commonToString /** * An [RFC 2045][rfc_2045] Media Type, appropriate to describe the content type of an HTTP request * or response body.
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 4.2K bytes - Viewed (0)