Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 17 for Dns (0.06 seconds)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/RealInterceptorChain.kt

        return copy(writeTimeoutMillis = checkDuration("writeTimeout", timeout.toLong(), unit))
      }
    
      override fun withDns(dns: Dns): Interceptor.Chain {
        check(exchange == null) { "dns can't be adjusted in a network interceptor" }
    
        return copy(dns = dns)
      }
    
      override fun withSocketFactory(socketFactory: SocketFactory): Interceptor.Chain {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Mar 10 21:47:20 GMT 2026
    - 12.8K bytes
    - Click Count (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Interceptor.kt

        val followRedirects: Boolean
    
        /**
         * Get the [DNS] instance for the OkHttpClient, or an override from the Call.Chain.
         */
        val dns: Dns
    
        /**
         * Override the [DNS] for the Call.Chain.
         *
         * @throws IllegalStateException if this is a Network Interceptor, since the override is too late.
         */
        fun withDns(dns: Dns): Chain
    
        /**
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Mar 10 21:47:20 GMT 2026
    - 8.9K bytes
    - Click Count (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. guava-tests/test/com/google/common/net/InetAddressesTest.java

        assertFalse(InetAddresses.isInetAddress("016.016.016.016"));
      }
    
      public void testForStringIPv4Input() throws UnknownHostException {
        String ipStr = "192.168.0.1";
        // Shouldn't hit DNS, because it's an IP string literal.
        InetAddress ipv4Addr = InetAddress.getByName(ipStr);
        assertThat(InetAddresses.forString(ipStr)).isEqualTo(ipv4Addr);
        assertTrue(InetAddresses.isInetAddress(ipStr));
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 16:38:16 GMT 2026
    - 36.3K bytes
    - Click Count (0)
  8. okhttp/api/android/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)
  9. okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt

          .assertHeader("", "ef")
      }
    
      @Test
      fun customDns() {
        // Configure a DNS that returns our local MockWebServer for android.com.
        val dns = FakeDns()
        dns["android.com"] = Dns.SYSTEM.lookup(server.url("/").host)
        client =
          client
            .newBuilder()
            .dns(dns)
            .build()
        server.enqueue(MockResponse())
        val request =
          Request(
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:02:18 GMT 2026
    - 146.5K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/net/HttpHeadersTest.java

                .put("X_WEBKIT_CSP_REPORT_ONLY", "X-WebKit-CSP-Report-Only")
                .buildOrThrow();
        ImmutableSet<String> uppercaseAcronyms =
            ImmutableSet.of(
                "CDN", "CH", "ID", "DNT", "DNS", "DPR", "ECT", "GPC", "HTTP2", "IP", "MD5", "P3P",
                "RTT", "TE", "UA", "UID", "URL", "WWW", "XSS");
    
        for (Field field : httpHeadersFields()) {
          assertThat(field.get(null))
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 20:10:09 GMT 2026
    - 4.1K bytes
    - Click Count (0)
Back to Top