Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for buildCloudflareIp (0.18 seconds)

  1. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DohProviders.kt

          .client(bootstrapClient)
          .url("https://dns.google/dns-query".toHttpUrl())
          .bootstrapDnsHosts(getByIp("8.8.4.4"), getByIp("8.8.8.8"))
          .post(true)
          .build()
    
      private fun buildCloudflareIp(bootstrapClient: OkHttpClient): DnsOverHttps =
        DnsOverHttps
          .Builder()
          .client(bootstrapClient)
          .url("https://1.1.1.1/dns-query".toHttpUrl())
          .includeIPv6(false)
          .build()
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 3.8K bytes
    - Click Count (0)
  2. android-test/src/androidDeviceTest/java/okhttp/android/test/OkHttpTest.kt

        assumeNetwork()
    
        client =
          client
            .newBuilder()
            .eventListenerFactory(clientTestRule.wrap(LoggingEventListener.Factory()))
            .build()
    
        val dohDns = buildCloudflareIp(client)
        val dohEnabledClient =
          client
            .newBuilder()
            .eventListener(EventListener.NONE)
            .dns(dohDns)
            .build()
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 29.9K bytes
    - Click Count (0)
Back to Top