Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for dnsoverhttps (1.53 sec)

  1. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsOverHttps.kt

        internal var resolvePrivateAddresses = false
        internal var resolvePublicAddresses = true
    
        fun build(): DnsOverHttps {
          val client = this.client ?: throw NullPointerException("client not set")
          return DnsOverHttps(
            client.newBuilder().dns(buildBootstrapClient(this)).build(),
            checkNotNull(url) { "url not set" },
            includeIPv6,
            post,
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat May 10 11:15:14 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  2. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DohProviders.kt

          .build()
    
      private fun buildChantra(bootstrapClient: OkHttpClient): DnsOverHttps =
        DnsOverHttps
          .Builder()
          .client(bootstrapClient)
          .url("https://dns.dnsoverhttps.net/dns-query".toHttpUrl())
          .includeIPv6(false)
          .build()
    
      private fun buildCryptoSx(bootstrapClient: OkHttpClient): DnsOverHttps =
        DnsOverHttps
          .Builder()
          .client(bootstrapClient)
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  3. okhttp-dnsoverhttps/README.md

    ### Download
    
    ```kotlin
    testImplementation("com.squareup.okhttp3:okhttp-dnsoverhttps:5.3.0")
    ```
    
    ### Usage
    
    ```
      val appCache = Cache(File("cacheDir", "okhttpcache"), 10 * 1024 * 1024)
      val bootstrapClient = OkHttpClient.Builder().cache(appCache).build()
    
      val dns = DnsOverHttps.Builder().client(bootstrapClient)
        .url("https://dns.google/dns-query".toHttpUrl())
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Thu Oct 30 21:39:59 UTC 2025
    - 739 bytes
    - Viewed (0)
  4. okhttp-dnsoverhttps/build.gradle.kts

      id("org.jetbrains.dokka")
      id("com.vanniktech.maven.publish.base")
      id("binary-compatibility-validator")
    }
    
    project.applyOsgi(
      "Export-Package: okhttp3.dnsoverhttps",
      "Bundle-SymbolicName: com.squareup.okhttp3.dnsoverhttps"
    )
    
    project.applyJavaModules("okhttp3.dnsoverhttps")
    
    dependencies {
      "friendsApi"(projects.okhttp)
    
      testImplementation(projects.okhttpTestingSupport)
      testImplementation(projects.mockwebserver)
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sun Sep 21 06:22:22 UTC 2025
    - 906 bytes
    - Viewed (1)
  5. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/BootstrapDns.kt

     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.dnsoverhttps
    
    import java.net.InetAddress
    import java.net.UnknownHostException
    import okhttp3.Dns
    
    /**
     * Internal Bootstrap DNS implementation for handling initial connection to DNS over HTTPS server.
     *
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  6. okhttp/src/jvmMain/java9/module-info.java

      exports okhttp3.internal.http2 to mockwebserver3, okhttp3.mockwebserver;
      exports okhttp3.internal.platform to okhttp3.logging, okhttp3.java.net.cookiejar, okhttp3.dnsoverhttps, mockwebserver3, okhttp3.mockwebserver, okhttp3.tls;
      exports okhttp3.internal.publicsuffix to okhttp3.dnsoverhttps;
      exports okhttp3.internal.ws to mockwebserver3, okhttp3.mockwebserver;
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sun Sep 21 08:30:26 UTC 2025
    - 969 bytes
    - Viewed (0)
  7. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsRecordCodecTest.kt

     */
    
    package okhttp3.dnsoverhttps
    
    import assertk.assertThat
    import assertk.assertions.containsExactly
    import assertk.assertions.isEqualTo
    import java.net.InetAddress
    import java.net.UnknownHostException
    import kotlin.test.assertFailsWith
    import okhttp3.dnsoverhttps.DnsRecordCodec.TYPE_A
    import okhttp3.dnsoverhttps.DnsRecordCodec.TYPE_AAAA
    import okhttp3.dnsoverhttps.DnsRecordCodec.decodeAnswers
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Thu May 29 20:09:10 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  8. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/TestDohMain.kt

     */
    package okhttp3.dnsoverhttps
    
    import java.io.File
    import java.net.UnknownHostException
    import java.security.Security
    import okhttp3.Cache
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import okhttp3.OkHttpClient
    import okhttp3.dnsoverhttps.DohProviders.providers
    import org.conscrypt.OpenSSLProvider
    
    private fun runBatch(
      dnsProviders: List<DnsOverHttps>,
      names: List<String>,
    ) {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  9. native-image-tests/build.gradle.kts

    }
    
    // TODO reenable other tests
    // https://github.com/square/okhttp/issues/8901
    //sourceSets {
    //  test {
    //    java.srcDirs(
    //      "../okhttp-brotli/src/test/java",
    //      "../okhttp-dnsoverhttps/src/test/java",
    //      "../okhttp-logging-interceptor/src/test/java",
    //      "../okhttp-sse/src/test/java",
    //    )
    //  }
    //}
    
    dependencies {
      implementation(projects.okhttp)
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Jul 22 20:31:49 UTC 2025
    - 904 bytes
    - Viewed (0)
  10. okhttp-dnsoverhttps/src/main/java9/module-info.java

    @SuppressWarnings("module")
    module okhttp3.dnsoverhttps {
      requires okhttp3;
      exports okhttp3.dnsoverhttps;
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sun Sep 21 06:22:22 UTC 2025
    - 112 bytes
    - Viewed (0)
Back to top