Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 112 for handshake (0.47 sec)

  1. okhttp/src/test/java/okhttp3/CacheTest.kt

        val cipherSuite = response1.handshake!!.cipherSuite
        val localCerts = response1.handshake!!.localCertificates
        val serverCerts = response1.handshake!!.peerCertificates
        val peerPrincipal = response1.handshake!!.peerPrincipal
        val localPrincipal = response1.handshake!!.localPrincipal
        val response2 = client.newCall(request).execute() // Cached!
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
  2. docs/changelogs/changelog_3x.md

        application code that creates challenges.
    
     *  New: The `TlsVersion` of a `Handshake` is now non-null. If you are calling
        `Handshake.get()` with a null TLS version, you must instead now provide a
        non-null `TlsVersion`. Cache responses persisted prior to OkHttp 3.0 did not
        store a TLS version; for these unknown values the handshake is defaulted to
        `TlsVersion.SSL_3_0`.
    
     *  New: Upgrade to Okio 1.13.0.
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 14:55:54 GMT 2022
    - 50.8K bytes
    - Viewed (0)
  3. mockwebserver-deprecated/api/mockwebserver.api

    	public final fun getBody ()Lokio/Buffer;
    	public final fun getBodySize ()J
    	public final fun getChunkSizes ()Ljava/util/List;
    	public final fun getFailure ()Ljava/io/IOException;
    	public final fun getHandshake ()Lokhttp3/Handshake;
    	public final fun getHeader (Ljava/lang/String;)Ljava/lang/String;
    	public final fun getHeaders ()Lokhttp3/Headers;
    	public final fun getMethod ()Ljava/lang/String;
    	public final fun getPath ()Ljava/lang/String;
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jul 22 12:28:51 GMT 2023
    - 10.2K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheStrategy.kt

          // No cached response.
          if (cacheResponse == null) {
            return CacheStrategy(request, null)
          }
    
          // Drop the cached response if it's missing a required handshake.
          if (request.isHttps && cacheResponse.handshake == null) {
            return CacheStrategy(request, null)
          }
    
          // If this response shouldn't have been stored, it should never be used as a response source.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:24:48 GMT 2024
    - 12K bytes
    - Viewed (0)
  5. mockwebserver/src/test/java/mockwebserver3/MockResponseSniTest.kt

        val recordedRequest = server.takeRequest()
        assertThat(recordedRequest.handshakeServerNames).containsExactly(url.host)
      }
    
      /**
       * Use different hostnames for the TLS handshake (including SNI) and the HTTP request (in the
       * Host header).
       */
      @Test
      fun domainFronting() {
        val heldCertificate =
          HeldCertificate.Builder()
            .commonName("server name")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.9K bytes
    - Viewed (1)
  6. mockwebserver/src/main/kotlin/mockwebserver3/SocketPolicy.kt

       * socket after the response body or trailers.
       */
      class DoNotReadRequestBody(
        val http2ErrorCode: Int = 0,
      ) : SocketPolicy
    
      /** Don't trust the client during the SSL handshake. */
      object FailHandshake : SocketPolicy
    
      /**
       * Shutdown the socket input after sending the response. For testing bad behavior.
       *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  7. okhttp-logging-interceptor/api/logging-interceptor.api

    	public fun responseHeadersStart (Lokhttp3/Call;)V
    	public fun satisfactionFailure (Lokhttp3/Call;Lokhttp3/Response;)V
    	public fun secureConnectEnd (Lokhttp3/Call;Lokhttp3/Handshake;)V
    	public fun secureConnectStart (Lokhttp3/Call;)V
    }
    
    public final class okhttp3/logging/LoggingEventListener$Companion {
    }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 09:14:38 GMT 2024
    - 4.5K bytes
    - Viewed (1)
  8. okhttp/src/main/kotlin/okhttp3/internal/tls/BasicCertificateChainCleaner.kt

    import javax.net.ssl.SSLPeerUnverifiedException
    
    /**
     * A certificate chain cleaner that uses a set of trusted root certificates to build the trusted
     * chain. This class duplicates the clean chain building performed during the TLS handshake. We
     * prefer other mechanisms where they exist, such as with
     * [okhttp3.internal.platform.AndroidPlatform.AndroidCertificateChainCleaner].
     *
     * This class includes code from [Conscrypt's][Conscrypt] [TrustManagerImpl] and
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/EventListener.kt

      }
    
      /**
       * Invoked immediately after a TLS connection was attempted.
       *
       * This method is invoked after [secureConnectStart].
       */
      open fun secureConnectEnd(
        call: Call,
        handshake: Handshake?,
      ) {
      }
    
      /**
       * Invoked immediately after a socket connection was attempted.
       *
       * If the `call` uses HTTPS, this will be invoked after [secureConnectEnd], otherwise it will
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 15.2K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/CacheCorruptionTest.kt

        assertThat(cache.requestCount()).isEqualTo(2)
        assertThat(cache.networkCount()).isEqualTo(1)
        assertThat(cache.hitCount()).isEqualTo(1)
    
        assertThat(response.handshake!!.cipherSuite.javaName).startsWith("SLT_")
      }
    
      @Test
      fun truncatedMetadataEntry() {
        val response =
          testCorruptingCache {
            corruptMetadata {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 6K bytes
    - Viewed (1)
Back to top