- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for decodeIpv6 (0.17 seconds)
-
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")!!
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 5.1K bytes - Click Count (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)
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 11.2K bytes - Click Count (0)