Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for commonToHeaders (0.07 sec)

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

    import okhttp3.internal.commonIterator
    import okhttp3.internal.commonName
    import okhttp3.internal.commonNewBuilder
    import okhttp3.internal.commonRemoveAll
    import okhttp3.internal.commonSet
    import okhttp3.internal.commonToHeaders
    import okhttp3.internal.commonToString
    import okhttp3.internal.commonValue
    import okhttp3.internal.commonValues
    import okhttp3.internal.headersCheckName
    import okhttp3.internal.http.toHttpDateOrNull
    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

        val value = namesAndValues[i + 1]
        headersCheckName(name)
        headersCheckValue(value, name)
      }
    
      return Headers(namesAndValues)
    }
    
    internal fun Map<String, String>.commonToHeaders(): Headers {
      // Make a defensive copy and clean it up.
      val namesAndValues = arrayOfNulls<String>(size * 2)
      var i = 0
      for ((k, v) in this) {
        val name = k.trim()
        val value = v.trim()
    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