Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 216 for Protocols (0.19 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/platform/Jdk8WithJettyBootPlatform.kt

              val protocol = peerProtocols[i] as String
              if (protocol in protocols) {
                selected = protocol
                return selected
              }
            }
            selected = protocols[0] // On no intersection, try peer's first protocol.
            return selected
          } else if ((methodName == "protocolSelected" || methodName == "selected") && callArgs.size == 1) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/OkHttpClientTest.kt

          OkHttpClient.Builder()
            .protocols(protocols as List<Protocol>)
        }.also { expected ->
          assertThat(expected.message).isEqualTo("protocols must not contain null")
        }
      }
    
      @Test fun spdy3IsRemovedFromProtocols() {
        val protocols =
          mutableListOf(
            Protocol.HTTP_1_1,
            Protocol.SPDY_3,
          )
        val client =
          OkHttpClient.Builder()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/platform/OpenJSSEPlatform.kt

        sslSocket: SSLSocket,
        hostname: String?,
        protocols: List<@JvmSuppressWildcards Protocol>,
      ) {
        if (sslSocket is org.openjsse.javax.net.ssl.SSLSocket) {
          val sslParameters = sslSocket.sslParameters
    
          if (sslParameters is org.openjsse.javax.net.ssl.SSLParameters) {
            // Enable ALPN.
            val names = alpnProtocolNames(protocols)
            sslParameters.applicationProtocols = names.toTypedArray()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/RouteFailureTest.kt

          .assertSuccessful()
          .assertCode(200)
      }
    
      private fun enableProtocol(protocol: Protocol) {
        enableTls()
        client =
          client.newBuilder()
            .protocols(listOf(protocol, Protocol.HTTP_1_1))
            .build()
        server1.protocols = client.protocols
        server2.protocols = client.protocols
      }
    
      private fun enableTls() {
        client =
          client.newBuilder()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/Address.kt

          .host(uriHost)
          .port(uriPort)
          .build()
    
      /**
       * The protocols the client supports. This method always returns a non-null list that
       * contains minimally [Protocol.HTTP_1_1].
       */
      @get:JvmName("protocols")
      val protocols: List<Protocol> = protocols.toImmutableList()
    
      @get:JvmName("connectionSpecs")
      val connectionSpecs: List<ConnectionSpec> =
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  6. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockWebServer.kt

      }
    
      @JvmName("-deprecated_protocols")
      @Deprecated(
        message = "moved to var",
        replaceWith = ReplaceWith(expression = "run { this.protocols = protocols }"),
        level = DeprecationLevel.ERROR,
      )
      fun setProtocols(protocols: List<Protocol>) {
        delegate.protocols = protocols
      }
    
      @JvmName("-deprecated_protocols")
      @Deprecated(
        message = "moved to var",
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

         *
         * @param protocols the protocols to use, in order of preference. If the list contains
         *     [Protocol.H2_PRIOR_KNOWLEDGE] then that must be the only protocol and HTTPS URLs will not
         *     be supported. Otherwise the list must contain [Protocol.HTTP_1_1]. The list must
         *     not contain null or [Protocol.HTTP_1_0].
         */
        fun protocols(protocols: List<Protocol>) =
          apply {
    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)
  8. okhttp/src/main/kotlin/okhttp3/internal/platform/android/Android10SocketAdapter.kt

      override fun configureTlsExtensions(
        sslSocket: SSLSocket,
        hostname: String?,
        protocols: List<Protocol>,
      ) {
        try {
          SSLSockets.setUseSessionTickets(sslSocket, true)
    
          val sslParameters = sslSocket.sslParameters
    
          // Enable ALPN.
          sslParameters.applicationProtocols = Platform.alpnProtocolNames(protocols).toTypedArray()
    
          sslSocket.sslParameters = sslParameters
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/platform/Platform.kt

         * Returns the concatenation of 8-bit, length prefixed protocol names.
         * http://tools.ietf.org/html/draft-agl-tls-nextprotoneg-04#page-4
         */
        fun concatLengthPrefixed(protocols: List<Protocol>): ByteArray {
          val result = Buffer()
          for (protocol in alpnProtocolNames(protocols)) {
            result.writeByte(protocol.length)
            result.writeUtf8(protocol)
          }
          return result.readByteArray()
        }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.8K bytes
    - Viewed (1)
  10. okhttp/src/test/java/okhttp3/KotlinDeprecationErrorTest.kt

        val dns: Dns = address.dns()
        val socketFactory: SocketFactory = address.socketFactory()
        val proxyAuthenticator: Authenticator = address.proxyAuthenticator()
        val protocols: List<Protocol> = address.protocols()
        val connectionSpecs: List<ConnectionSpec> = address.connectionSpecs()
        val proxySelector: ProxySelector = address.proxySelector()
        val proxy: Proxy? = address.proxy()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13.3K bytes
    - Viewed (0)
Back to top