Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 72 for dns (0.17 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/connection/RouteSelector.kt

              listOf(InetAddress.getByName(socketHost))
            } else {
              connectionUser.dnsStart(socketHost)
    
              val result = address.dns.lookup(socketHost)
              if (result.isEmpty()) {
                throw UnknownHostException("${address.dns} returned no addresses for $socketHost")
              }
    
              connectionUser.dnsEnd(socketHost, result)
              result
            }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Mar 06 17:33:38 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  2. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

            .build()
    
        val dohDns = buildCloudflareIp(client)
        val dohEnabledClient =
          client.newBuilder().eventListener(EventListener.NONE).dns(dohDns).build()
    
        dohEnabledClient.get("https://www.twitter.com/robots.txt")
        dohEnabledClient.get("https://www.facebook.com/robots.txt")
      }
    
      @Test
      fun testCustomTrustManager() {
    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)
  3. okhttp/src/test/java/okhttp3/FastFallbackTest.kt

          )
    
        client =
          clientTestRule.newClientBuilder()
            .eventListenerFactory(clientTestRule.wrap(listener))
            .connectTimeout(60, TimeUnit.SECONDS) // Deliberately exacerbate slow fallbacks.
            .dns { dnsResults }
            .fastFallback(true)
            .build()
        url =
          serverIpv4.url("/")
            .newBuilder()
            .host("localhost")
            .build()
      }
    
      @AfterEach
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/EventListener.kt

       */
      open fun proxySelectEnd(
        call: Call,
        url: HttpUrl,
        proxies: List<@JvmSuppressWildcards Proxy>,
      ) {
      }
    
      /**
       * Invoked just prior to a DNS lookup. See [Dns.lookup].
       *
       * This can be invoked more than 1 time for a single [Call]. For example, if the response to the
       * [Call.request] is a redirect to a different host.
       *
    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)
  5. docs/features/caching.md

    ### Cache Hit
    
    In the ideal scenario the cache can fulfill the request without any conditional call to the network.
    This will skip the normal events such as DNS, connecting to the network, and downloading the response body.
    
    As recommended by the HTTP RFC the max age of a document is defaulted to 10% of the 
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 3.1K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/Call.kt

       * error to execute a call more than once.
       */
      fun isExecuted(): Boolean
    
      fun isCanceled(): Boolean
    
      /**
       * Returns a timeout that spans the entire call: resolving DNS, connecting, writing the request
       * body, server processing, and reading the response body. If the call requires redirects or
       * retries all must complete within one timeout period.
       *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 3.6K bytes
    - Viewed (0)
  7. okhttp/api/okhttp.api

    	public final fun setMaxRequestsPerHost (I)V
    }
    
    public abstract interface class okhttp3/Dns {
    	public static final field Companion Lokhttp3/Dns$Companion;
    	public static final field SYSTEM Lokhttp3/Dns;
    	public abstract fun lookup (Ljava/lang/String;)Ljava/util/List;
    }
    
    public final class okhttp3/Dns$Companion {
    }
    
    public abstract class okhttp3/EventListener {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 70.2K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/connection/InetAddressOrder.kt

    import java.net.Inet6Address
    import java.net.InetAddress
    import okhttp3.internal.interleave
    
    /**
     * Implementation of HappyEyeballs Sorting Addresses.
     *
     * The current implementation does not address any of:
     *  - Async DNS split by IP class
     *  - Stateful handling of connectivity results
     *  - The prioritisation of addresses
     *
     * https://datatracker.ietf.org/doc/html/rfc8305#section-4
     */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 1.3K bytes
    - Viewed (0)
  9. CHANGELOG.md

    
    ## Version 5.0.0-alpha.3
    
    _2021-11-22_
    
     *  Fix: Change `Headers.toString()` to redact authorization and cookie headers.
     *  Fix: Don't do DNS to get the hostname for `RecordedRequest.requestUrl`. This was doing a DNS
        lookup for the local hostname, but we really just wanted the `Host` header.
     *  Fix: Don't crash with a `InaccessibleObjectException` when detecting the platform trust manager
    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/authenticator/JavaNetAuthenticatorTest.kt

      private var authenticator = JavaNetAuthenticator()
      private val fakeDns = FakeDns()
      private val recordingAuthenticator = RecordingAuthenticator()
      private val factory =
        TestValueFactory()
          .apply {
            dns = fakeDns
          }
    
      @BeforeEach
      fun setup() {
        Authenticator.setDefault(recordingAuthenticator)
      }
    
      @AfterEach
      fun tearDown() {
        Authenticator.setDefault(null)
        factory.close()
      }
    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)
Back to top