Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for commonAdd (0.06 sec)

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

     */
    
    package okhttp3
    
    import java.time.Instant
    import java.util.Collections
    import java.util.Date
    import java.util.Locale
    import java.util.TreeMap
    import java.util.TreeSet
    import okhttp3.internal.commonAdd
    import okhttp3.internal.commonAddAll
    import okhttp3.internal.commonAddLenient
    import okhttp3.internal.commonBuild
    import okhttp3.internal.commonEquals
    import okhttp3.internal.commonGet
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/-HeadersCommon.kt

      for (i in namesAndValues.size - 2 downTo 0 step 2) {
        if (name.equals(namesAndValues[i], ignoreCase = true)) {
          return namesAndValues[i + 1]
        }
      }
      return null
    }
    
    internal fun Headers.Builder.commonAdd(
      name: String,
      value: String,
    ) = apply {
      headersCheckName(name)
      headersCheckValue(value, name)
      commonAddLenient(name, value)
    }
    
    internal fun Headers.Builder.commonAddAll(headers: Headers) =
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.9K bytes
    - Viewed (0)
Back to top