Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for DnsOverHttps (0.2 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 Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Oct 31 09:27:31 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  2. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DohProviders.kt

      }
    
      private fun buildChantra(bootstrapClient: OkHttpClient): DnsOverHttps {
        return DnsOverHttps.Builder()
          .client(bootstrapClient)
          .url("https://dns.dnsoverhttps.net/dns-query".toHttpUrl())
          .includeIPv6(false)
          .build()
      }
    
      private fun buildCryptoSx(bootstrapClient: OkHttpClient): DnsOverHttps {
        return DnsOverHttps.Builder()
          .client(bootstrapClient)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Dec 23 10:26:25 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  3. 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 Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.2K 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",
      "Automatic-Module-Name: okhttp3.dnsoverhttps",
      "Bundle-SymbolicName: com.squareup.okhttp3.dnsoverhttps"
    )
    
    dependencies {
      api(projects.okhttp)
      compileOnly(libs.findbugs.jsr305)
    
      testImplementation(projects.okhttpTestingSupport)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 06 05:31:00 UTC 2024
    - 932 bytes
    - Viewed (0)
  5. okhttp-dnsoverhttps/README.md

    ### Download
    
    ```kotlin
    testImplementation("com.squareup.okhttp3:okhttp-dnsoverhttps:4.12.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 Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Dec 17 15:34:10 UTC 2023
    - 740 bytes
    - Viewed (0)
  6. native-image-tests/src/main/resources/testlist.txt

    okhttp3.ServerTruncatesRequestTest
    okhttp3.SocksProxyTest
    okhttp3.URLConnectionTest
    okhttp3.WebPlatformUrlTest
    okhttp3.brotli.BrotliInterceptorJavaApiTest
    okhttp3.brotli.BrotliInterceptorTest
    okhttp3.dnsoverhttps.DnsOverHttpsTest
    okhttp3.dnsoverhttps.DnsRecordCodecTest
    okhttp3.internal.UtilTest
    okhttp3.internal.authenticator.JavaNetAuthenticatorTest
    okhttp3.internal.cache.DiskLruCacheTest
    okhttp3.internal.cache2.FileOperatorTest
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu May 11 14:48:57 UTC 2023
    - 2.8K 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.AsyncDns.Companion.TYPE_A
    import okhttp3.AsyncDns.Companion.TYPE_AAAA
    import okhttp3.dnsoverhttps.DnsRecordCodec.decodeAnswers
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  8. 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 Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  9. native-image-tests/build.gradle.kts

      compileOnly(libs.findbugs.jsr305)
    }
    
    animalsniffer {
      isIgnoreFailures = true
    }
    
    sourceSets {
      main {
        java.srcDirs(
          "../okhttp-brotli/src/test/java",
          "../okhttp-dnsoverhttps/src/test/java",
          "../okhttp-logging-interceptor/src/test/java",
          "../okhttp-sse/src/test/java",
        )
      }
    }
    
    graal {
      mainClass("okhttp3.RunTestsKt")
      outputName("ConsoleLauncher")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 06 05:31:00 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  10. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsOverHttpsTest.kt

          .build()
      }
    
      private fun buildLocalhost(
        bootstrapClient: OkHttpClient,
        includeIPv6: Boolean,
        post: Boolean = false,
      ): DnsOverHttps {
        val url = server.url("/lookup?ct")
        return DnsOverHttps.Builder().client(bootstrapClient)
          .includeIPv6(includeIPv6)
          .resolvePrivateAddresses(true)
          .url(url)
          .post(post)
          .build()
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 11K bytes
    - Viewed (0)
Back to top