Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for commonHeadersOf (0.12 sec)

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

    import okhttp3.internal.commonBuild
    import okhttp3.internal.commonEquals
    import okhttp3.internal.commonGet
    import okhttp3.internal.commonHashCode
    import okhttp3.internal.commonHeadersGet
    import okhttp3.internal.commonHeadersOf
    import okhttp3.internal.commonIterator
    import okhttp3.internal.commonName
    import okhttp3.internal.commonNewBuilder
    import okhttp3.internal.commonRemoveAll
    import okhttp3.internal.commonSet
    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

        }
      }
    }
    
    private fun Char.charCode() =
      code.toString(16).let {
        if (it.length < 2) {
          "0$it"
        } else {
          it
        }
      }
    
    internal fun commonHeadersOf(vararg inputNamesAndValues: String): Headers {
      require(inputNamesAndValues.size % 2 == 0) { "Expected alternating header names and values" }
    
      // Make a defensive copy and clean it up.
    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