Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for getByName (0.18 sec)

  1. okhttp/src/test/java/okhttp3/internal/connection/InetAddressOrderTest.kt

    @Suppress("ktlint:standard:property-naming")
    class InetAddressOrderTest {
      val ipv4_10_0_0_6 = Inet4Address.getByName("10.0.0.6")
      val ipv4_10_0_0_1 = Inet4Address.getByName("10.0.0.1")
      val ipv4_10_0_0_4 = Inet4Address.getByName("10.0.0.4")
      val ipv6_ab = Inet6Address.getByName("::ac")
      val ipv6_fc = Inet6Address.getByName("::fc")
    
      @Test fun prioritiseIpv6Example() {
        val result =
          reorderForHappyEyeballs(
            listOf(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  2. okhttp-dnsoverhttps/README.md

      val dns = DnsOverHttps.Builder().client(bootstrapClient)
        .url("https://dns.google/dns-query".toHttpUrl())
        .bootstrapDnsHosts(InetAddress.getByName("8.8.4.4"), InetAddress.getByName("8.8.8.8"))
        .build()
    
      val client = bootstrapClient.newBuilder().dns(dns).build()
    ```
    
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Dec 17 15:34:10 GMT 2023
    - 740 bytes
    - Viewed (4)
  3. buildSrc/src/main/kotlin/Osgi.kt

      val osgi = project.sourceSets.create("osgi")
      val osgiApi = project.configurations.getByName(osgiApiConfigurationName)
      val kotlinOsgi =
        extensions.getByType(VersionCatalogsExtension::class.java).named("libs")
          .findLibrary("kotlin.stdlib.osgi").get().get()
    
      project.dependencies {
        osgiApi(kotlinOsgi)
      }
    
      val jarTask = tasks.getByName<Jar>(jarTaskName)
      val bundleExtension =
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  4. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsRecordCodecTest.kt

              (
                "00008180000100010000000006676f6f676c6503636f6d0000010001c00c0001000100000043" +
                  "0004d83ad54e"
              ).decodeHex(),
          )
        assertThat(encoded).containsExactly(InetAddress.getByName("216.58.213.78"))
      }
    
      @Test
      fun testGoogleDotComDecodingFromGoogle() {
        val decoded =
          decodeAnswers(
            hostname = "test.com",
            byteString =
              (
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/SocksProxy.kt

              when {
                domainName.equals(HOSTNAME_THAT_ONLY_THE_PROXY_KNOWS, ignoreCase = true) -> {
                  InetAddress.getByName("localhost")
                }
                else -> InetAddress.getByName(domainName)
              }
            }
    
            else -> throw ProtocolException("unsupported address type: $addressType")
          }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  6. okhttp/build.gradle.kts

      mainClass.set("okhttp3.internal.idn.GenerateIdnaMappingTableCode")
      args("$buildDir/generated/sources/idnaMappingTable")
      classpath = generateIdnaMappingTableConfiguration
    }
    
    kotlin {
      sourceSets {
        getByName("main") {
          kotlin.srcDir(copyKotlinTemplates.get().outputs)
          kotlin.srcDir(generateIdnaMappingTable.outputs)
        }
      }
    }
    
    project.applyOsgi(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Jan 04 05:32:07 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  7. build-logic-commons/basics/src/main/kotlin/gradlebuild.minify.gradle.kts

            }
            // It would be nice if we could be more selective about which variants to apply this to.
            // TODO https://github.com/gradle/gradle/issues/11831#issuecomment-580686994
            artifactTypes.getByName("jar") {
                attributes.attribute(minified, java.lang.Boolean.FALSE)
            }
            /*
             * This transform exists solely to shrink the size of the fastutil jar from 25MB to 1.7MB.
    Plain Text
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Sat Sep 30 16:17:28 GMT 2023
    - 4.2K bytes
    - Viewed (0)
  8. android-test-app/build.gradle.kts

      }
    
      kotlinOptions {
        jvmTarget = JavaVersion.VERSION_11.toString()
      }
    
      buildTypes {
        release {
          isShrinkResources = true
          isMinifyEnabled = true
          signingConfig = signingConfigs.getByName("debug")
          setProguardFiles(listOf(getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"))
          testProguardFiles("test-proguard-rules.pro")
        }
      }
    }
    
    dependencies {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Dec 23 14:46:51 GMT 2023
    - 1.2K bytes
    - Viewed (0)
  9. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DohProviders.kt

            add(buildCryptoSx(client)) // 521 - server down
          }
          add(buildChantra(client))
        }
      }
    
      private fun getByIp(host: String): InetAddress {
        return try {
          InetAddress.getByName(host)
        } catch (e: UnknownHostException) {
          // unlikely
          throw RuntimeException(e)
        }
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Dec 23 10:26:25 GMT 2023
    - 3.8K bytes
    - Viewed (3)
  10. okhttp-android/src/test/kotlin/okhttp3/android/RobolectricOkHttpClientTest.kt

          assertThat(response.code).isEqualTo(200)
          assertThat(response.cacheResponse).isNotNull()
        }
      }
    
      private fun assumeNetwork() {
        try {
          InetAddress.getByName("www.google.com")
        } catch (uhe: UnknownHostException) {
          throw AssumptionViolatedException(uhe.message, uhe)
        }
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 2.5K bytes
    - Viewed (0)
Back to top