- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for decodeIpv6 (0.04 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/internal/HostnamesTest.kt
assertThat(canonicalizeInetAddress(addressC)).isEqualTo(addressC) val addressD = decodeIpv6("abcd:ef01:2345:6789:abcd:ef01:2345:6789")!! assertThat(canonicalizeInetAddress(addressD)).isEqualTo(addressD) val addressE = decodeIpv6("2001:db8::1:0:0:1")!! assertThat(canonicalizeInetAddress(addressE)).isEqualTo(addressE) val addressF = decodeIpv6("0:0:0:0:0:ffff:7f00:1")!!
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 5.1K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-HostnamesCommon.kt
// If the input is encased in square braces "[...]", drop 'em. val inetAddressByteArray = ( if (host.startsWith("[") && host.endsWith("]")) { decodeIpv6(host, 1, host.length - 1) } else { decodeIpv6(host, 0, host.length) } ) ?: return null val address = canonicalizeInetAddress(inetAddressByteArray)
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 11.2K bytes - Viewed (0)