Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for toHeaders (0.09 sec)

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

        @JvmName("of")
        fun Map<String, String>.toHeaders(): Headers = commonToHeaders()
    
        @JvmName("-deprecated_of")
        @Deprecated(
          message = "function moved to extension",
          replaceWith = ReplaceWith(expression = "headers.toHeaders()"),
          level = DeprecationLevel.ERROR,
        )
        fun of(headers: Map<String, String>): Headers {
          return headers.toHeaders()
        }
      }
    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/http2/Http2Connection.kt

    import okhttp3.internal.okHttpName
    import okhttp3.internal.peerName
    import okhttp3.internal.platform.Platform
    import okhttp3.internal.platform.Platform.Companion.INFO
    import okhttp3.internal.toHeaders
    import okio.Buffer
    import okio.BufferedSink
    import okio.BufferedSource
    import okio.ByteString
    import okio.buffer
    import okio.sink
    import okio.source
    
    /**
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 32.6K bytes
    - Viewed (0)
  3. docs/changelogs/upgrading_to_okhttp_4.md

    | :---------------------------------- | :------------------------------ |
    | Handshake.get(SSLSession)           | SSLSession.handshake()          |
    | Headers.of(Map<String, String>)     | Map<String, String>.toHeaders() |
    | HttpUrl.get(String)                 | String.toHttpUrl()              |
    | HttpUrl.get(URI)                    | URI.toHttpUrlOrNull()           |
    | HttpUrl.get(URL)                    | URL.toHttpUrlOrNull()           |
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 06 16:58:16 UTC 2022
    - 10.9K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/-UtilJvm.kt

      require(millis <= Integer.MAX_VALUE) { "$name too large" }
      require(millis != 0L || !duration.isPositive()) { "$name too small" }
      return millis.toInt()
    }
    
    internal fun List<Header>.toHeaders(): Headers {
      val builder = Headers.Builder()
      for ((name, value) in this) {
        builder.addLenient(name.utf8(), value.utf8())
      }
      return builder.build()
    }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon May 13 13:42:37 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

    import javax.net.ssl.X509KeyManager
    import javax.net.ssl.X509TrustManager
    import okhttp3.Handshake.Companion.handshake
    import okhttp3.Headers.Companion.headersOf
    import okhttp3.Headers.Companion.toHeaders
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import okhttp3.HttpUrl.Companion.toHttpUrlOrNull
    import okhttp3.MediaType.Companion.toMediaType
    import okhttp3.MediaType.Companion.toMediaTypeOrNull
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 46.5K bytes
    - Viewed (0)
Back to top