Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 111 for Dns (0.01 seconds)

  1. okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt

            override fun peek(): MockResponse = TODO()
    
            override fun shutdown() = TODO()
          }
      }
    
      @Test
      fun dns() {
        var dns: Dns = Dns { TODO() }
    
        val system: Dns = Dns.SYSTEM
      }
    
      @Test
      fun eventListener() {
        val eventListener =
          object : EventListener() {
            override fun callStart(call: Call) = TODO()
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Mar 10 21:47:20 GMT 2026
    - 49.7K bytes
    - Click Count (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/InterceptorOverridesTest.kt

        object DnsOverride : Override<Dns> {
          override fun Interceptor.Chain.value(): Dns = dns
    
          override fun Interceptor.Chain.withOverride(value: Dns): Interceptor.Chain = withDns(value)
    
          override fun OkHttpClient.Builder.withOverride(value: Dns): OkHttpClient.Builder = dns(value)
    
          override val nonDefaultValue: Dns = Dns { Dns.SYSTEM.lookup(it) }
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 11 02:37:00 GMT 2026
    - 28.8K bytes
    - Click Count (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/KotlinDeprecationErrorTest.kt

      @AfterEach
      fun tearDown() {
        factory.close()
      }
    
      @Test @Disabled
      fun address() {
        val address: Address = factory.newAddress()
        val url: HttpUrl = address.url()
        val dns: Dns = address.dns()
        val socketFactory: SocketFactory = address.socketFactory()
        val proxyAuthenticator: Authenticator = address.proxyAuthenticator()
        val protocols: List<Protocol> = address.protocols()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Dec 27 13:39:56 GMT 2024
    - 13.3K bytes
    - Click Count (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/internal/DoubleInetAddressDns.kt

    package okhttp3.internal
    
    import java.net.InetAddress
    import okhttp3.Dns
    
    /**
     * A network that always resolves two IP addresses per host. Use this when testing route selection
     * fallbacks to guarantee that a fallback address is available.
     */
    class DoubleInetAddressDns : Dns {
      override fun lookup(hostname: String): List<InetAddress> {
        val addresses = Dns.SYSTEM.lookup(hostname)
        return listOf(addresses[0], addresses[0])
      }
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Dec 27 13:39:56 GMT 2024
    - 1K bytes
    - Click Count (0)
  5. okhttp-dnsoverhttps/api/okhttp-dnsoverhttps.api

    public final class okhttp3/dnsoverhttps/DnsOverHttps : okhttp3/Dns {
    	public static final field Companion Lokhttp3/dnsoverhttps/DnsOverHttps$Companion;
    	public static final field MAX_RESPONSE_SIZE I
    	public final fun client ()Lokhttp3/OkHttpClient;
    	public final fun includeIPv6 ()Z
    	public fun lookup (Ljava/lang/String;)Ljava/util/List;
    	public final fun post ()Z
    	public final fun resolvePrivateAddresses ()Z
    	public final fun resolvePublicAddresses ()Z
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Feb 27 15:23:43 GMT 2022
    - 1.5K bytes
    - Click Count (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/FailedPlan.kt

     *
     *  * A DNS lookup failed
     *  * The configuration is incapable of carrying the request, such as when the client is configured
     *    to use `H2_PRIOR_KNOWLEDGE` but the URL's scheme is `https:`.
     *  * Preemptive proxy authentication failed.
     *
     * Planning failures are not necessarily fatal. For example, even if we can't DNS lookup the first
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 1.5K bytes
    - Click Count (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt

            .build(),
        )
        server.enqueue(MockResponse())
        val dns = FakeDns()
        dns["fakeurl"] = client.dns.lookup(server.hostName)
        dns["www.fakeurl"] = client.dns.lookup(server.hostName)
        client =
          client
            .newBuilder()
            .dns(dns)
            .build()
        val call =
          client.newCallWithListener(
            Request
              .Builder()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Feb 03 22:17:59 GMT 2026
    - 70.7K bytes
    - Click Count (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RoutePlanner.kt

     *     a race in fast follow-up.
     *
     *  4. If there's no existing connection, make a list of routes (which may require blocking DNS
     *     lookups) and attempt new connections to them. When failures occur, retries iterate the
     *     list of available routes.
     *
     * If the pool gains an eligible connection while DNS, TCP, or TLS work is in flight, this finder
     * will prefer pooled connections. Only pooled HTTP/2 connections are used for such de-duplication.
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue May 27 14:58:02 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  9. okhttp/api/jvm/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 {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Mar 10 21:47:20 GMT 2026
    - 72.3K bytes
    - Click Count (0)
  10. docs/features/connections.md

    There may be many routes for a single address. For example, a webserver that is hosted in multiple datacenters may yield multiple IP addresses in its DNS response.
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:01:42 GMT 2026
    - 5.4K bytes
    - Click Count (0)
Back to Top