Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for selectCar (0.27 sec)

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

       * Returns this address's explicitly-specified HTTP proxy, or null to delegate to the
       * [proxy selector][proxySelector].
       */
      @get:JvmName("proxy") val proxy: Proxy?,
      protocols: List<Protocol>,
      connectionSpecs: List<ConnectionSpec>,
      /**
       * Returns this address's proxy selector. Only used if the proxy is null. If none of this
       * selector's proxies are reachable, a direct connection will be attempted.
       */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/EventListener.kt

       * 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.
       *
       * Otherwise it lists the proxies in the order they will be attempted.
       *
    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/test/java/okhttp3/OkHttpClientTest.kt

      private var server: MockWebServer? = null
    
      @BeforeEach fun setUp(server: MockWebServer?) {
        this.server = server
      }
    
      @AfterEach fun tearDown() {
        ProxySelector.setDefault(DEFAULT_PROXY_SELECTOR)
        CookieManager.setDefault(DEFAULT_COOKIE_HANDLER)
        ResponseCache.setDefault(DEFAULT_RESPONSE_CACHE)
      }
    
      @Test fun durationDefaults() {
        val client = clientTestRule.newClient()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt

      internal fun connectFailed(
        client: OkHttpClient,
        failedRoute: Route,
        failure: IOException,
      ) {
        // Tell the proxy selector when we fail to connect on a fresh connection.
        if (failedRoute.proxy.type() != Proxy.Type.DIRECT) {
          val address = failedRoute.address
          address.proxySelector.connectFailed(
            address.url.toUri(),
    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)
  5. docs/changelogs/changelog_4x.md

     *  New: Build with Kotlin 1.3.41, BouncyCastle 1.62, and Conscrypt 2.2.1.
     *  Fix: Recover gracefully when a coalesced connection immediately goes unhealthy.
     *  Fix: Defer the `SecurityException` when looking up the default proxy selector.
     *  Fix: Don't use brackets formatting IPv6 host names in MockWebServer.
     *  Fix: Don't permit cache iterators to remove entries that are being written.
    
    
    ## Version 4.0.1
    
    _2019-07-10_
    
    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)
  6. okhttp-idna-mapping-table/src/main/resources/okhttp3/internal/idna/IdnaMappingTable.txt

    180B..180D    ; ignored                                # 3.0  MONGOLIAN FREE VARIATION SELECTOR ONE..MONGOLIAN FREE VARIATION SELECTOR THREE
    180E          ; disallowed                             # 3.0  MONGOLIAN VOWEL SEPARATOR
    180F          ; ignored                                # 14.0 MONGOLIAN FREE VARIATION SELECTOR FOUR
    1810..1819    ; valid                                  # 3.0  MONGOLIAN DIGIT ZERO..MONGOLIAN DIGIT NINE
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Feb 10 11:25:47 GMT 2024
    - 854.1K bytes
    - Viewed (2)
  7. okhttp/src/test/java/okhttp3/internal/connection/RouteSelectorTest.kt

        assertThat(selection.hasNext()).isFalse()
        assertThat(routeSelector.hasNext()).isFalse()
        dns.assertRequests(uriHost)
        proxySelector.assertRequests() // No proxy selector requests!
      }
    
      /**
       * Don't call through to the proxy selector if we don't have a host name.
       * https://github.com/square/okhttp/issues/5770
       */
      @Test fun proxySelectorNotCalledForNullHost() {
    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/main/kotlin/okhttp3/internal/proxy/NullProxySelector.kt

     */
    package okhttp3.internal.proxy
    
    import java.io.IOException
    import java.net.Proxy
    import java.net.ProxySelector
    import java.net.SocketAddress
    import java.net.URI
    
    /**
     * A proxy selector that always returns the [Proxy.NO_PROXY].
     */
    object NullProxySelector : ProxySelector() {
      override fun select(uri: URI?): List<Proxy> {
        requireNotNull(uri) { "uri must not be null" }
        return listOf(Proxy.NO_PROXY)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/CallTest.kt

        executeSynchronously("/")
          .assertFailure(IOException::class.java)
      }
    
      @Test
      fun requestBodySurvivesRetries() {
        server.enqueue(MockResponse())
    
        // Enable a misconfigured proxy selector to guarantee that the request is retried.
        client =
          client.newBuilder()
            .proxySelector(
              FakeProxySelector()
                .addProxy(server2.toProxyAddress())
    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)
  10. okhttp/src/main/kotlin/okhttp3/Route.kt

     * connection the client has many options:
     *
     *  * **HTTP proxy:** a proxy server may be explicitly configured for the client. Otherwise, the
     *    [proxy selector][java.net.ProxySelector] is used. It may return multiple proxies to attempt.
     *  * **IP address:** whether connecting directly to an origin server or a proxy, opening a socket
    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