Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 202 for duns (0.02 sec)

  1. regression-test/README.md

    ...
    01-01 12:53:32.811 10999 11089 D OkHttp  : [49 ms] responseHeadersEnd: Response{protocol=h2, code=200, message=, url=https://1.1.1.1/dns-query?dns=AAABAAABAAAAAAAAA3d3dwhmYWNlYm9vawNjb20AABwAAQ}
    01-01 12:53:32.811 10999 11089 D OkHttp  : [49 ms] responseBodyStart
    01-01 12:53:32.811 10999 11089 D OkHttp  : [49 ms] responseBodyEnd: byteCount=128
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Nov 13 07:09:56 UTC 2020
    - 2.5K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/ConnectionListenerTest.kt

          ),
        )
        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.newCall(
            Request
              .Builder()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  3. docs/changelogs/upgrading_to_okhttp_4.md

    Kotlin calling OkHttp 3.x:
    
    ```kotlin
    val client = OkHttpClient.Builder()
        .dns { hostname -> InetAddress.getAllByName(hostname).toList() }
        .build()
    ```
    
    Kotlin calling OkHttp 4.x:
    
    ```kotlin
    val client = OkHttpClient.Builder()
        .dns(object : Dns {
          override fun lookup(hostname: String) =
              InetAddress.getAllByName(hostname).toList()
        })
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Feb 06 16:58:16 UTC 2022
    - 10.9K bytes
    - Viewed (0)
  4. 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.newCall(
            Request
              .Builder()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 60.4K bytes
    - Viewed (0)
  5. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsOverHttpsTest.kt

    @Tag("Slowish")
    class DnsOverHttpsTest {
      @RegisterExtension
      val platform = PlatformRule()
    
      @StartStop
      private val server = MockWebServer()
    
      private lateinit var dns: Dns
      private val cacheFs = FakeFileSystem()
      private val eventListener = RecordingEventListener()
      private val bootstrapClient =
        OkHttpClient
          .Builder()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/RouteFailureTest.kt

      @BeforeEach
      fun setUp() {
        socketFactory = SpecificHostSocketFactory(InetSocketAddress(server1.hostName, server1.port))
    
        client =
          clientTestRule
            .newClientBuilder()
            .dns(dns)
            .socketFactory(socketFactory)
            .eventListenerFactory(clientTestRule.wrap(listener))
            .build()
      }
    
      @Test
      fun http2OneBadHostOneGoodNoRetryOnConnectionFailure() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  7. 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()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  8. 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()
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jun 21 20:36:35 UTC 2025
    - 46.5K bytes
    - Viewed (0)
  9. mockwebserver/src/test/java/mockwebserver3/MockResponseSniTest.kt

        server.useHttps(handshakeCertificates.sslSocketFactory())
    
        val dns =
          Dns {
            Dns.SYSTEM.lookup(server.hostName)
          }
    
        val client =
          clientTestRule
            .newClientBuilder()
            .sslSocketFactory(
              handshakeCertificates.sslSocketFactory(),
              handshakeCertificates.trustManager,
            ).dns(dns)
            .build()
    
        server.enqueue(MockResponse())
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/net/InetAddresses.java

     *
     * <p><b>Important note:</b> Unlike {@code InetAddress.getByName()}, the methods of this class never
     * cause DNS services to be accessed. For this reason, you should prefer these methods as much as
     * possible over their JDK equivalents whenever you are expecting to handle only IP address string
     * literals -- there is no blocking DNS penalty for a malformed string.
     *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 19 21:24:11 UTC 2025
    - 47.4K bytes
    - Viewed (0)
Back to top