Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 41 for defaults (0.22 sec)

  1. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/HttpLoggingInterceptor.kt

           * ```
           */
          BODY,
        }
    
        fun interface Logger {
          fun log(message: String)
    
          companion object {
            /** A [Logger] defaults output appropriate for the current platform. */
            @JvmField
            val DEFAULT: Logger = DefaultLogger()
    
            private class DefaultLogger : Logger {
              override fun log(message: String) {
                Platform.get().log(message)
              }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 09:14:38 GMT 2024
    - 11.2K bytes
    - Viewed (1)
  2. okhttp/src/test/java/okhttp3/CallHandshakeTest.kt

        val client = makeClient()
        makeRequest(client)
    
        // As of OkHttp 5 we now apply the ordering from the OkHttpClient, which defaults to MODERN_TLS
        // Clients might need a changed order, but can at least define a preferred order to override that default.
        val socketOrderedByDefaults =
          handshakeEnabledCipherSuites.sortedBy { ConnectionSpec.MODERN_TLS.cipherSuitesAsString!!.indexOf(it) }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  3. docs/changelogs/changelog_4x.md

    The [spec][rfc_7692] includes a sophisticated mechanism for client and server to negotiate
    compression features. We strive to offer great performance in our default configuration and so we're
    making compression the default for everyone starting with this release candidate.
    
    Please be considerate of your servers and their operators as you roll out this release. Compression
    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)
  4. okhttp/src/main/kotlin/okhttp3/internal/platform/Platform.kt

          )
        factory.init(null as KeyStore?)
        val trustManagers = factory.trustManagers!!
        check(trustManagers.size == 1 && trustManagers[0] is X509TrustManager) {
          "Unexpected default trust managers: ${trustManagers.contentToString()}"
        }
        return trustManagers[0] as X509TrustManager
      }
    
      open fun trustManager(sslSocketFactory: SSLSocketFactory): X509TrustManager? {
        return try {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.8K bytes
    - Viewed (1)
  5. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt

            .pingIntervalMillis(pingIntervalMillis)
            .flowControlListener(flowControlListener)
            .build()
        this.http2Connection = http2Connection
        this.allocationLimit = Http2Connection.DEFAULT_SETTINGS.getMaxConcurrentStreams()
        http2Connection.start()
      }
    
      /**
       * Returns true if this connection can carry a stream allocation to `address`. If non-null
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  6. okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt

         * security. ECDSA keys are noticeably faster than RSA keys.
         *
         * This is the default configuration and has been since this API was introduced in OkHttp
         * 3.11.0. Note that the default may change in future releases.
         */
        fun ecdsa256() =
          apply {
            keyAlgorithm = "EC"
            keySize = 256
          }
    
        /**
    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)
  7. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

            when {
              Build.VERSION.SDK_INT >= 24 -> {
                // Conscrypt 2.5+ defaults to SSLEngine-based SSLSocket
                assertEquals("org.conscrypt.Java8EngineSocket", socketClass)
              }
              Build.VERSION.SDK_INT < 22 -> {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 27K bytes
    - Viewed (1)
  8. okhttp/src/main/kotlin/okhttp3/Request.kt

      val isHttps: Boolean
        get() = url.isHttps
    
      /**
       * Constructs a new request.
       *
       * Use [Builder] for more fluent construction, including helper methods for various HTTP methods.
       *
       * @param method defaults to "GET" if [body] is null, and "POST" otherwise.
       */
      constructor(
        url: HttpUrl,
        headers: Headers = headersOf(),
        // '\u0000' is a sentinel value that'll choose based on what the body is:
    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)
  9. CHANGELOG.md

        prefer the JDK’s precedence order.) This change may cause your HTTP calls to negotiate a
        different cipher suite than before! OkHttp's defaults cipher suites are selected for good
        security and performance.
    
     *  New: `ConnectionListener` publishes events for connects, disconnects, and use of pooled
        connections.
    
    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)
  10. okhttp/src/test/java/okhttp3/internal/tls/ClientAuthTest.kt

            handshakeCertificates.sslSocketFactory(),
            handshakeCertificates.trustManager,
          )
          .build()
      }
    
      private fun buildServerSslSocketFactory(): SSLSocketFactory {
        // The test uses JDK default SSL Context instead of the Platform provided one
        // as Conscrypt seems to have some differences, we only want to test client side here.
        return try {
          val keyManager =
            newKeyManager(
              null,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Jan 14 10:20:09 GMT 2024
    - 12.5K bytes
    - Viewed (0)
Back to top