Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 47 for period (0.18 sec)

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

     * handshakes.
     */
    class Handshake internal constructor(
      /**
       * Returns the TLS version used for this connection. This value wasn't tracked prior to OkHttp
       * 3.0. For responses cached by preceding versions this returns [TlsVersion.SSL_3_0].
       */
      @get:JvmName("tlsVersion") val tlsVersion: TlsVersion,
      /** Returns the cipher suite used for the connection. */
    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)
  2. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

              .hostnameVerifier(RecordingHostnameVerifier())
              .build()
          scheme = "https"
        } else {
          server.protocols = listOf(Protocol.H2_PRIOR_KNOWLEDGE)
          client =
            clientTestRule.newClientBuilder()
              .protocols(listOf(Protocol.H2_PRIOR_KNOWLEDGE))
              .build()
          scheme = "http"
        }
      }
    
      @AfterEach fun tearDown() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 75.3K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/CipherSuiteTest.kt

      }
    
      /**
       * On the Oracle JVM some older cipher suites have the "SSL_" prefix and others have the "TLS_"
       * prefix. On the IBM JVM all cipher suites have the "SSL_" prefix.
       *
       * Prior to OkHttp 3.3.1 we accepted either form and consider them equivalent. And since OkHttp
       * 3.7.0 this is also true. But OkHttp 3.3.1 through 3.6.0 treated these as different.
       */
      @Test
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/Request.kt

      fun <T : Any> tag(type: KClass<T>): T? = type.java.cast(tags[type])
    
      /**
       * Returns the tag attached with `Object.class` as a key, or null if no tag is attached with
       * that key.
       *
       * Prior to OkHttp 3.11, this method never returned null if no tag was attached. Instead it
       * returned either this request, or the request upon which this request was derived with
       * [newBuilder].
       *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:17:44 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/ProtocolTest.kt

        assertThat(get("http/1.1")).isEqualTo(Protocol.HTTP_1_1)
        assertThat(get("spdy/3.1")).isEqualTo(Protocol.SPDY_3)
        assertThat(get("h2")).isEqualTo(Protocol.HTTP_2)
        assertThat(get("h2_prior_knowledge")).isEqualTo(Protocol.H2_PRIOR_KNOWLEDGE)
        assertThat(get("quic")).isEqualTo(Protocol.QUIC)
        assertThat(get("h3")).isEqualTo(Protocol.HTTP_3)
        assertThat(get("h3-29")).isEqualTo(Protocol.HTTP_3)
      }
    
      @Test
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Jan 04 05:32:07 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/connection/RealRoutePlanner.kt

              "CLEARTEXT communication to $host not permitted by network security policy",
            )
          }
        } else {
          if (Protocol.H2_PRIOR_KNOWLEDGE in route.address.protocols) {
            throw UnknownServiceException("H2_PRIOR_KNOWLEDGE cannot be used with HTTPS")
          }
        }
    
        val tunnelRequest =
          when {
            route.requiresTunnel() -> createTunnelRequest(route)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 12K bytes
    - Viewed (0)
  7. CHANGELOG.md

    _2022-06-08_
    
     *  Fix: Change how `H2_PRIOR_KNOWLEDGE` works with HTTP proxies. Previously OkHttp assumed the
        proxy itself was a prior knowledge HTTP/2 server. With this update, OkHttp attempts a `CONNECT`
        tunnel just as it would with HTTPS. For prior knowledge with proxies OkHttp's is now consistent
        with these curl arguments:
    
        ```
        curl \
          --http2-prior-knowledge \
          --proxy localhost:8888 \
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 18 01:31:39 GMT 2024
    - 21.4K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/Route.kt

       *
       * [rfc_2817]: http://www.ietf.org/rfc/rfc2817.txt
       */
      fun requiresTunnel(): Boolean {
        if (proxy.type() != Proxy.Type.HTTP) return false
        return (address.sslSocketFactory != null) ||
          (Protocol.H2_PRIOR_KNOWLEDGE in address.protocols)
      }
    
      override fun equals(other: Any?): Boolean {
        return other is Route &&
          other.address == address &&
          other.proxy == proxy &&
          other.socketAddress == socketAddress
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/connection/RoutePlanner.kt

     *     possible for shared exchanges to make requests to different host names! See
     *     [RealConnection.isEligible] for details.
     *
     *  3. Attempt plans from prior connect attempts for this call. These occur as either follow-ups to
     *     failed connect attempts (such as trying the next [ConnectionSpec]), or as attempts that lost
     *     a race in fast follow-up.
     *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 4.2K bytes
    - Viewed (0)
  10. okhttp-tls/src/main/kotlin/okhttp3/tls/HandshakeCertificates.kt

         * gaps. For example, an insecure TLS connection is capable of negotiating HTTP/2 with ALPN and
         * it also has a regular-looking handshake.
         *
         * **This feature is not supported on Android API levels less than 24.** Prior releases lacked
         * a mechanism to trust some hosts and not others.
         *
         * @param hostname the exact hostname from the URL for insecure connections.
         */
        fun addInsecureHost(hostname: String) =
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.5K bytes
    - Viewed (1)
Back to top