Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for immutableListOf (0.21 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2ExchangeCodec.kt

    import okhttp3.internal.http2.Header.Companion.TARGET_PATH_UTF8
    import okhttp3.internal.http2.Header.Companion.TARGET_SCHEME
    import okhttp3.internal.http2.Header.Companion.TARGET_SCHEME_UTF8
    import okhttp3.internal.immutableListOf
    import okio.Sink
    import okio.Source
    
    /** Encode requests and responses using HTTP/2 frames. */
    class Http2ExchangeCodec(
      client: OkHttpClient,
      override val carrier: Carrier,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/connection/RouteSelector.kt

          val uri = url.toUri()
          if (uri.host == null) return immutableListOf(Proxy.NO_PROXY)
    
          // Try each of the ProxySelector choices until one connection succeeds.
          val proxiesOrNull = address.proxySelector.select(uri)
          if (proxiesOrNull.isNullOrEmpty()) return immutableListOf(Proxy.NO_PROXY)
    
          return proxiesOrNull.toImmutableList()
        }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Mar 06 17:33:38 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/Handshake.kt

    import java.security.Principal
    import java.security.cert.Certificate
    import java.security.cert.X509Certificate
    import javax.net.ssl.SSLPeerUnverifiedException
    import javax.net.ssl.SSLSession
    import okhttp3.internal.immutableListOf
    import okhttp3.internal.toImmutableList
    
    /**
     * A record of a TLS handshake. For HTTPS clients, the client is *local* and the remote server is
     * its *peer*.
     *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

          }
    
        fun build(): OkHttpClient = OkHttpClient(this)
      }
    
      companion object {
        internal val DEFAULT_PROTOCOLS = immutableListOf(HTTP_2, HTTP_1_1)
    
        internal val DEFAULT_CONNECTION_SPECS =
          immutableListOf(
            ConnectionSpec.MODERN_TLS,
            ConnectionSpec.CLEARTEXT,
          )
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:21:33 GMT 2024
    - 52K bytes
    - Viewed (0)
  5. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

    import okhttp3.internal.http2.ErrorCode
    import okhttp3.internal.http2.Header
    import okhttp3.internal.http2.Http2Connection
    import okhttp3.internal.http2.Http2Stream
    import okhttp3.internal.immutableListOf
    import okhttp3.internal.platform.Platform
    import okhttp3.internal.threadFactory
    import okhttp3.internal.toImmutableList
    import okhttp3.internal.ws.RealWebSocket
    import okhttp3.internal.ws.WebSocketExtensions
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 37.4K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/-UtilJvm.kt

    internal fun <T> List<T>.toImmutableList(): List<T> {
      return Collections.unmodifiableList(toMutableList())
    }
    
    /** Returns an immutable list containing [elements]. */
    @SafeVarargs
    internal fun <T> immutableListOf(vararg elements: T): List<T> {
      return Collections.unmodifiableList(listOf(*elements.clone()))
    }
    
    /** Closes this, ignoring any checked exceptions. */
    internal fun Socket.closeQuietly() {
      try {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  7. okhttp-android/src/main/baseline-prof.txt

    HSPLokhttp3/internal/_UtilJvmKt;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
    HSPLokhttp3/internal/_UtilJvmKt;->headersContentLength(Lokhttp3/Response;)J
    HSPLokhttp3/internal/_UtilJvmKt;->immutableListOf([Ljava/lang/Object;)Ljava/util/List;
    HSPLokhttp3/internal/_UtilJvmKt;->readBomAsCharset(Lokio/BufferedSource;Ljava/nio/charset/Charset;)Ljava/nio/charset/Charset;
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Mar 21 11:22:00 GMT 2022
    - 127.9K bytes
    - Viewed (0)
Back to top