- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 28 for getByName (0.06 seconds)
-
okhttp/src/jvmTest/kotlin/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(Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 2.4K bytes - Click Count (0) -
buildSrc/src/main/kotlin/Osgi.kt
bndProperties: Array<out String>, ) { val osgi = project.sourceSets.create("osgi") val osgiApi = project.configurations.getByName(osgiApiConfigurationName) project.dependencies { osgiApi(kotlinOsgi) } val jarTask = tasks.getByName<Jar>(jarTaskName) val bundleExtension = jarTask.extensions.findByType() ?: jarTask.extensions.create( BundleTaskExtension.NAME,
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Aug 01 08:06:31 GMT 2025 - 5.1K bytes - Click Count (0) -
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 = (Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Thu May 29 20:09:10 GMT 2025 - 3.6K bytes - Click Count (0) -
build-logic/integration-testing/src/main/kotlin/gradlebuild/integrationtests/shared-configuration.kt
getByName("${prefix}TestRuntimeClasspath") { if (platformImplementation != null) { extendsFrom(platformImplementation) } } if (platformImplementation != null) { getByName("${prefix}TestCompileClasspath") { extendsFrom(getByName("platformImplementation")) } }Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Mon Aug 18 16:39:23 GMT 2025 - 12.8K bytes - Click Count (0) -
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() ```
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Thu Oct 30 21:39:59 GMT 2025 - 739 bytes - Click Count (0) -
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") } } lint { abortOnError = true }Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sat Jul 19 12:35:48 GMT 2025 - 1.2K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/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") }Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Mon May 05 16:01:00 GMT 2025 - 7.6K bytes - Click Count (0) -
buildSrc/src/main/kotlin/JavaModules.kt
configure<MultiReleaseExtension> { targetVersions(defaultVersion, javaModuleVersion) } tasks.named<JavaCompile>("compileJava9Java").configure { val compileKotlinTask = tasks.getByName("compileKotlin") as KotlinJvmCompile dependsOn(compileKotlinTask) if (enableValidation) { compileKotlinTask.source(file("src/main/java9")) }
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sun Sep 21 06:22:22 GMT 2025 - 1.9K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/RouteFailureTest.kt
private var eventRecorder = EventRecorder() private val handshakeCertificates = platform.localhostHandshakeCertificates() val dns = FakeDns() val ipv4 = InetAddress.getByName("203.0.113.1") val ipv6 = InetAddress.getByName("2001:db8:ffff:ffff:ffff:ffff:ffff:1") val refusedStream = MockResponse .Builder() .onRequestStart(CloseStream(ErrorCode.REFUSED_STREAM.httpCode)) .build()
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue Nov 04 19:13:52 GMT 2025 - 11.6K bytes - Click Count (0) -
android-test/src/test/kotlin/okhttp/android/test/BaseOkHttpClientUnitTest.kt
val httpUrl = "https://www.google.co.uk".toHttpUrl() assertThat(httpUrl.topPrivateDomain()).isEqualTo("google.co.uk") } private fun assumeNetwork() { try { InetAddress.getByName("www.google.com") } catch (uhe: UnknownHostException) { throw AssumptionViolatedException(uhe.message, uhe) } }
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue Jul 22 20:03:31 GMT 2025 - 2.3K bytes - Click Count (0)