Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for oldu (0.16 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/idn/Punycode.kt

              }
            if (digit < t) break
            val scaleW = BASE - t
            if (w > Int.MAX_VALUE / scaleW) return false // Prevent overflow.
            w *= scaleW
          }
          bias = adapt(i - oldi, codePoints.size + 1, oldi == 0)
          val deltaN = i / (codePoints.size + 1)
          if (n > Int.MAX_VALUE - deltaN) return false // Prevent overflow.
          n += deltaN
          i %= (codePoints.size + 1)
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 03 03:04:50 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  2. docs/changelogs/changelog_4x.md

        change OkHttp's behavior in handling common HTTP status codes, but this fix is overdue! The new
        behavior is now consistent with [RFC 7231][rfc_7231_647], which is newer than OkHttp itself.
        If you want this update with the old behavior use [this interceptor][legacy_interceptor].
    
     *  Fix: Don't crash decompressing web sockets messages. We had a bug where we assumed deflated
        bytes in would always yield deflated bytes out and this isn't always the case!
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  3. android-test/src/androidTest/java/okhttp/android/test/sni/SniOverrideTest.kt

            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
              val parameters = sslSocket.sslParameters
              val sni = parameters.serverNames
              Log.d("CustomSSLSocketFactory", "old SNI: $sni")
              parameters.serverNames = mutableListOf<SNIServerName>(SNIHostName("cloudflare-dns.com"))
              sslSocket.sslParameters = parameters
            }
    
            return sslSocket
          }
        }
    
    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/main/kotlin/okhttp3/Headers.kt

                addLenient(line.substring(0, index), line.substring(index + 1))
              }
              line[0] == ':' -> {
                // Work around empty header names and header names that start with a colon (created by old
                // broken SPDY versions of the response cache).
                addLenient("", line.substring(1)) // Empty header name.
              }
              else -> {
                // No header name.
    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)
  5. okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt

            keySize = 256
          }
    
        /**
         * Configure the certificate to generate a 2048-bit RSA key, which provides about 112 bits of
         * security. RSA keys are interoperable with very old clients that don't support ECDSA.
         */
        fun rsa2048() =
          apply {
            keyAlgorithm = "RSA"
            keySize = 2048
          }
    
        fun build(): HeldCertificate {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 21.6K bytes
    - Viewed (1)
  6. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

     * equal, and the [equals()][Object.equals] method between them returns true:
     *
     *  * https://example.net/
     *
     *  * https://example.com/
     *
     * This is because those two hosts share the same IP address. This is an old, bad design decision
     * that makes `java.net.URL` unusable for many things. It shouldn't be used as a [Map] key or in a
     * [Set]. Doing so is both inefficient because equality may require a DNS lookup, and incorrect
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 63.5K bytes
    - Viewed (1)
  7. android-test/src/androidTest/java/okhttp/android/test/alpn/AlpnOverrideTest.kt

        override fun configureSocket(sslSocket: SSLSocket): SSLSocket {
          if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
            val parameters = sslSocket.sslParameters
            Log.d("CustomSSLSocketFactory", "old applicationProtocols: $parameters.applicationProtocols")
            parameters.applicationProtocols = arrayOf("x-amzn-http-ca")
            sslSocket.sslParameters = parameters
          }
    
          return sslSocket
        }
      }
    
    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)
  8. CHANGELOG.md

        curl \
          --http2-prior-knowledge \
          --proxy localhost:8888 \
          --proxytunnel \
          http://squareup.com/robots.txt
        ```
    
     *  Fix: Support executing OkHttp on kotlin-stdlib versions as old as 1.4. The library still builds
        on up-to-date Kotlin releases (1.6.21) but no longer needs that version as a runtime dependency.
        This should make it easier to use OkHttp in Gradle plugins.
    
    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)
  9. gradlew

            # changing the positional parameters here affects neither the number of
            # iterations, nor the values presented in `arg`.
            shift                   # remove old arg
            set -- "$@" "$arg"      # push replacement arg
        done
    fi
    
    
    # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
    Shell Script
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Dec 24 09:00:26 GMT 2023
    - 8.5K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnectionPool.kt

       */
      fun closeConnections(now: Long): Long {
        // Compute the concurrent call capacity for each address. We won't close a connection if doing
        // so would violate a policy, unless it's OLD.
        val addressStates = this.addressStates
        for (state in addressStates.values) {
          state.concurrentCallCapacity = 0
        }
        for (connection in connections) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 16.2K bytes
    - Viewed (0)
Back to top