Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 86 for if (0.14 sec)

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

            CipherSuite.TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA.javaName,
          )
        applyConnectionSpec(tlsSpec, sslSocket, false)
        if (platform.isAndroid) {
          // https://developer.android.com/reference/javax/net/ssl/SSLSocket
          val sdkVersion = platform.androidSdkVersion()
          if (sdkVersion != null && sdkVersion >= 29) {
            assertThat(sslSocket.enabledCipherSuites)
              .containsExactly(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 14.7K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/RouteFailureTest.kt

        println("\n\nRequest to ${server2.inetSocketAddress}")
        executeSynchronously(request)
          .apply {
            // We may have a single failed request if not clean shutdown
            if (cleanShutdown) {
              assertSuccessful()
              assertCode(200)
    
              assertThat(server2.requestCount).isEqualTo(1)
            } else {
              this.assertFailure(SocketTimeoutException::class.java)
    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)
  3. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Adapters.kt

                for ((type, adapter) in choices) {
                  if (type.isInstance(value) || (value == null && type == Unit::class)) {
                    (adapter as DerAdapter<Any?>).toDer(writer, value)
                    return
                  }
                }
              }
            }
          }
    
          override fun fromDer(reader: DerReader): Any? {
            if (isOptional && !reader.hasNext()) return optionalValue
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 15K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt

          check(!closed) { "closed" }
          if (!hasMoreChunks) return -1
    
          if (bytesRemainingInChunk == 0L || bytesRemainingInChunk == NO_CHUNK_YET) {
            readChunkSize()
            if (!hasMoreChunks) return -1
          }
    
          val read = super.read(sink, minOf(byteCount, bytesRemainingInChunk))
          if (read == -1L) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 16.2K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectPlan.kt

        user.addPlanToCancel(this)
        try {
          if (tunnelRequest != null) {
            val tunnelResult = connectTunnel()
    
            // Tunnel didn't work. Start it all again.
            if (tunnelResult.nextPlan != null || tunnelResult.throwable != null) {
              return tunnelResult
            }
          }
    
          if (route.address.sslSocketFactory != null) {
    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)
  6. okhttp/src/main/kotlin/okhttp3/Cache.kt

      @Synchronized internal fun trackResponse(cacheStrategy: CacheStrategy) {
        requestCount++
    
        if (cacheStrategy.networkRequest != null) {
          // If this is a conditional request, we'll increment hitCount if/when it hits.
          networkCount++
        } else if (cacheStrategy.cacheResponse != null) {
          // This response uses the cache and not the network. That's a cache hit.
          hitCount++
        }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  7. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/CertificateAdapters.kt

       *   subjectPublicKeyInfo SubjectPublicKeyInfo,
       *   issuerUniqueID  [1]  IMPLICIT UniqueIdentifier OPTIONAL, -- If present, version MUST be v2 or v3
       *   subjectUniqueID [2]  IMPLICIT UniqueIdentifier OPTIONAL, -- If present, version MUST be v2 or v3
       *   extensions      [3]  EXPLICIT Extensions OPTIONAL -- If present, version MUST be v3
       * }
       * ```
       */
      internal val tbsCertificate: BasicDerAdapter<TbsCertificate> =
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13.6K bytes
    - Viewed (1)
  8. okhttp/src/main/kotlin/okhttp3/CertificatePinner.kt

        override fun toString(): String = "$hashAlgorithm/${hash.base64()}"
    
        override fun equals(other: Any?): Boolean {
          if (this === other) return true
          if (other !is Pin) return false
    
          if (pattern != other.pattern) return false
          if (hashAlgorithm != other.hashAlgorithm) return false
          if (hash != other.hash) return false
    
          return true
        }
    
        override fun hashCode(): Int {
    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)
  9. okhttp/src/main/kotlin/okhttp3/Response.kt

      /**
       * Returns the RFC 7235 authorization challenges appropriate for this response's code. If the
       * response code is 401 unauthorized, this returns the "WWW-Authenticate" challenges. If the
       * response code is 407 proxy unauthorized, this returns the "Proxy-Authenticate" challenges.
       * Otherwise this returns an empty list of challenges.
       *
       * If a challenge uses the `token68` variant instead of auth params, there is exactly one
    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)
  10. okhttp/src/main/kotlin/okhttp3/Headers.kt

        /**
         * Set a field with the specified date. If the field is not found, it is added. If the field is
         * found, the existing values are replaced.
         */
        operator fun set(
          name: String,
          value: Date,
        ) = set(name, value.toHttpDateString())
    
        /**
         * Set a field with the specified instant. If the field is not found, it is added. If the field
         * is found, the existing values are replaced.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.5K bytes
    - Viewed (0)
Back to top