Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for commonHeaders (0.34 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/-ResponseCommon.kt

        .build()
    }
    
    val Response.commonIsSuccessful: Boolean
      get() = code in 200..299
    
    fun Response.commonHeaders(name: String): List<String> = headers.values(name)
    
    @JvmOverloads
    fun Response.commonHeader(
      name: String,
      defaultValue: String?,
    ): String? = headers[name] ?: defaultValue
    
    @Throws(IOException::class)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:24:48 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/-RequestCommon.kt

    import kotlin.reflect.KClass
    import okhttp3.CacheControl
    import okhttp3.Headers
    import okhttp3.Request
    import okhttp3.RequestBody
    import okhttp3.internal.http.HttpMethod
    
    fun Request.commonHeader(name: String): String? = headers[name]
    
    fun Request.commonHeaders(name: String): List<String> = headers.values(name)
    
    fun Request.commonNewBuilder(): Request.Builder = Request.Builder(this)
    
    fun Request.commonCacheControl(): CacheControl {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.1K bytes
    - Viewed (0)
Back to top