Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for commonToMediaTypeOrNull (0.22 sec)

  1. okhttp/src/main/kotlin/okhttp3/MediaType.kt

    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.
     *
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/-MediaTypeCommon.kt

      }
    
      return MediaType(this, type, subtype, parameterNamesAndValues.toTypedArray())
    }
    
    /** Returns a media type for this, or null if this is not a well-formed media type. */
    fun String.commonToMediaTypeOrNull(): MediaType? {
      return try {
        commonToMediaType()
      } catch (_: IllegalArgumentException) {
        null
      }
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.1K bytes
    - Viewed (0)
Back to top