Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for buildCloudflareIp (0.06 sec)

  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()
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  2. android-test/src/androidTest/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()
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 02 14:12:28 UTC 2025
    - 29K bytes
    - Viewed (0)
Back to top