Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for DnsOverHttps (0.3 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,
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Fri Mar 22 07:09:21 GMT 2024
    - 9.8K bytes
    - Viewed (0)
  2. okhttp-dnsoverhttps/api/okhttp-dnsoverhttps.api

    	public final fun post (Z)Lokhttp3/dnsoverhttps/DnsOverHttps$Builder;
    	public final fun resolvePrivateAddresses (Z)Lokhttp3/dnsoverhttps/DnsOverHttps$Builder;
    	public final fun resolvePublicAddresses (Z)Lokhttp3/dnsoverhttps/DnsOverHttps$Builder;
    	public final fun systemDns (Lokhttp3/Dns;)Lokhttp3/dnsoverhttps/DnsOverHttps$Builder;
    	public final fun url (Lokhttp3/HttpUrl;)Lokhttp3/dnsoverhttps/DnsOverHttps$Builder;
    }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Feb 27 15:23:43 GMT 2022
    - 1.5K bytes
    - Viewed (0)
  3. 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)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Dec 23 10:26:25 GMT 2023
    - 3.8K bytes
    - Viewed (3)
  4. 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())
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Dec 17 15:34:10 GMT 2023
    - 740 bytes
    - Viewed (4)
  5. 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>,
    ) {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  6. 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)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Jan 06 05:31:00 GMT 2024
    - 932 bytes
    - Viewed (0)
  7. 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
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Thu May 11 14:48:57 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  8. 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
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  9. 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()
      }
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 11K bytes
    - Viewed (0)
  10. 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.
     *
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.3K bytes
    - Viewed (2)
Back to top