Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 98 for apple (0.31 sec)

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

        open fun sentRequestAtMillis(sentRequestAtMillis: Long) =
          apply {
            this.sentRequestAtMillis = sentRequestAtMillis
          }
    
        open fun receivedResponseAtMillis(receivedResponseAtMillis: Long) =
          apply {
            this.receivedResponseAtMillis = receivedResponseAtMillis
          }
    
        internal fun initExchange(exchange: Exchange) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/platform/android/AndroidCertificateChainCleaner.kt

        try {
          return x509TrustManagerExtensions.checkServerTrusted(certificates, "RSA", hostname)
        } catch (ce: CertificateException) {
          throw SSLPeerUnverifiedException(ce.message).apply { initCause(ce) }
        }
      }
    
      override fun equals(other: Any?): Boolean =
        other is AndroidCertificateChainCleaner &&
          other.trustManager === this.trustManager
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectPlan.kt

            // Figure out the next connection spec in case we need a retry.
            retryTlsConnection = tlsEquipPlan.nextConnectionSpec(connectionSpecs, sslSocket)
    
            connectionSpec.apply(sslSocket, isFallback = tlsEquipPlan.isTlsFallback)
            connectTls(sslSocket, connectionSpec)
            user.secureConnectEnd(handshake)
          } else {
            socket = rawSocket
            protocol =
              when {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/CertificatePinner.kt

         *     Info, base64-encoded and prefixed with either `sha256/` or `sha1/`.
         */
        fun add(
          pattern: String,
          vararg pins: String,
        ) = apply {
          for (pin in pins) {
            this.pins.add(Pin(pattern, pin))
          }
        }
    
        fun build(): CertificatePinner = CertificatePinner(pins.toSet())
      }
    
      companion object {
        @JvmField
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 14.2K bytes
    - Viewed (1)
  5. okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt

        private var index = 0
    
        fun assertLogEqual(expected: String) =
          apply {
            assertThat(index, "No more messages found")
              .isLessThan(logs.size)
            assertThat(logs[index++]).isEqualTo(expected)
            return this
          }
    
        fun assertLogMatch(regex: Regex) =
          apply {
            assertThat(index, "No more messages found")
              .isLessThan(logs.size)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 09:14:38 GMT 2024
    - 37.6K bytes
    - Viewed (0)
  6. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

        assertThat(other.port).isNotEqualTo(server.port)
        other.shutdown()
      }
    
      @Test
      fun statementStartsAndStops() {
        val called = AtomicBoolean()
        val statement =
          server.apply(
            object : Statement() {
              override fun evaluate() {
                called.set(true)
                server.url("/").toUrl().openConnection().connect()
              }
            },
            Description.EMPTY,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 21.9K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/connection/RouteSelectorTest.kt

      private val dns = FakeDns()
      private val proxySelector = RecordingProxySelector()
      private val uriHost = "hosta"
      private val uriPort = 1003
      private val factory =
        TestValueFactory().apply {
          this.dns = ******@****.***
          this.proxySelector = ******@****.***elector
          this.uriHost = ******@****.***t
          this.uriPort = ******@****.***t
        }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Mar 06 17:33:38 GMT 2024
    - 20.8K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/CallTest.kt

      fun canceledBeforeResponseReadSignalsOnFailure_HTTP_2() {
        enableProtocol(Protocol.HTTP_2)
        canceledBeforeResponseReadSignalsOnFailure()
      }
    
      /**
       * There's a race condition where the cancel may apply after the stream has already been
       * processed.
       */
      @Test
      fun canceledAfterResponseIsDeliveredBreaksStreamButSignalsOnce() {
        server.enqueue(MockResponse(body = "A"))
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/RouteFailureTest.kt

        socketFactory[ipv6] = server1.inetSocketAddress
        socketFactory[ipv4] = server2.inetSocketAddress
    
        client =
          client.newBuilder()
            .fastFallback(false)
            .apply {
              retryOnConnectionFailure = false
            }
            .build()
    
        executeSynchronously(request)
          .assertFailureMatches("stream was reset: REFUSED_STREAM")
    
    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)
  10. okhttp/src/test/java/okhttp3/internal/connection/RetryConnectionTest.kt

        assertThat(retryTlsHandshake(exception)).isFalse()
      }
    
      @Test fun nonRetryableSSLHandshakeException() {
        val exception =
          SSLHandshakeException("Certificate handshake exception").apply {
            initCause(CertificateException())
          }
        assertThat(retryTlsHandshake(exception)).isFalse()
      }
    
      @Test fun retryableSSLHandshakeException() {
    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)
Back to top