Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for decodeIpv6 (0.08 sec)

  1. okhttp/src/test/java/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 Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 30 06:23:33 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  2. okhttp/src/main/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 Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 11.2K bytes
    - Viewed (0)
Back to top