Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for configured (6.61 sec)

  1. docs/changelogs/changelog_4x.md

        this because it only occurs if you have proxy configured and you share a connection pool among
        multiple `OkHttpClient` instances.
    
        This particularly-subtle bug was caused by us assigning each `OkHttpClient` instance its own
        `NullProxySelector` when an explicit proxy is configured. But we don't share connections when
        the proxy selectors are different. Ugh!
    
    
    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)
  2. okhttp/src/main/kotlin/okhttp3/EventListener.kt

       *
       * Note that the list of proxies is never null, but it may be a list containing
       * only [Proxy.NO_PROXY]. This comes up in several situations:
       *
       * * If neither a proxy nor proxy selector is configured.
       * * If the proxy is configured explicitly as [Proxy.NO_PROXY].
       * * If the proxy selector returns only [Proxy.NO_PROXY].
       * * If the proxy selector returns an empty list or null.
       *
    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)
  3. okhttp/src/main/kotlin/okhttp3/CertificatePinner.kt

          var result = pattern.hashCode()
          result = 31 * result + hashAlgorithm.hashCode()
          result = 31 * result + hash.hashCode()
          return result
        }
      }
    
      /** Builds a configured certificate pinner. */
      class Builder {
        val pins = mutableListOf<Pin>()
    
        /**
         * Pins certificates for `pattern`.
         *
    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)
  4. okhttp-testing-support/src/main/kotlin/okhttp3/OkHttpClientTestRule.kt

    /**
     * Apply this rule to all tests. It adds additional checks for leaked resources and uncaught
     * exceptions.
     *
     * Use [newClient] as a factory for a OkHttpClient instances. These instances are specifically
     * configured for testing.
     */
    class OkHttpClientTestRule : BeforeEachCallback, AfterEachCallback {
      private val clientEventsList = mutableListOf<String>()
      private var testClient: OkHttpClient? = null
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectPlan.kt

     *  * Optional [TLS handshake][connectTls].
     *
     * Each step may fail. If a retry is possible, a new instance is created with the next plan, which
     * will be configured differently.
     */
    class ConnectPlan(
      private val taskRunner: TaskRunner,
      private val connectionPool: RealConnectionPool,
      private val readTimeoutMillis: Int,
      private val writeTimeoutMillis: Int,
    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/internal/platform/Platform.kt

          // JEP 403 Strongly Encapsulate JDK Internals.
          if (e.javaClass.name != "java.lang.reflect.InaccessibleObjectException") {
            throw e
          }
    
          null
        }
      }
    
      /**
       * Configure TLS extensions on `sslSocket` for `route`.
       */
      open fun configureTlsExtensions(
        sslSocket: SSLSocket,
        hostname: String?,
        protocols: List<@JvmSuppressWildcards Protocol>,
      ) {
      }
    
    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)
  7. docs/changelogs/changelog_2x.md

        simple request and response logging. It may be configured to log headers and
        bodies for debugging. It requires this Maven dependency:
    
         ```xml
         <dependency>
           <groupId>com.squareup.okhttp</groupId>
           <artifactId>logging-interceptor</artifactId>
           <version>2.6.0</version>
         </dependency>
         ```
    
        Configure basic logging like this:
    
        ```java
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 26.6K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/http/RetryAndFollowUpInterceptor.kt

        val location = userResponse.header("Location") ?: return null
        // Don't follow redirects to unsupported protocols.
        val url = userResponse.request.url.resolve(location) ?: return null
    
        // If configured, don't follow redirects between SSL and non-SSL.
        val sameScheme = url.scheme == userResponse.request.url.scheme
        if (!sameScheme && !client.followSslRedirects) return null
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:24:48 GMT 2024
    - 12.1K bytes
    - Viewed (4)
  9. okhttp/src/test/java/okhttp3/UrlComponentEncodingTester.kt

        private const val UNICODE_3 = 0x2202
    
        /** Arbitrary code point that's 4 bytes in UTF-8 and valid in IdnaMappingTable.txt. */
        private const val UNICODE_4 = 0x1d11e
    
        /**
         * Returns a new instance configured with a default encode set for the ASCII range. The specific
         * rules vary per-component: for example, '?' may be identity-encoded in a fragment, but must be
         * percent-encoded in a path.
         *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  10. CHANGELOG.md

        requests with the same POST data get the same cache entry.
    
     *  New: `HttpLoggingInterceptor.redactQueryParams()` configures the query parameters to redact
        in logs. For best security, don't put sensitive information in query parameters.
    
     *  New: `ConnectionPool.setPolicy()` configures a minimum connection pool size for a target
        address. Use this to proactively open HTTP 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)
Back to top