Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for idn (0.01 sec)

  1. okhttp/src/test/java/okhttp3/HttpUrlTest.kt

      }
    
      @Test
      fun hostnameMappingLastMappedCodePoint() {
        assertThat(parse("http://\uD87E\uDE1D").host).isEqualTo("xn--pu5l")
      }
    
      // The java.net.IDN implementation doesn't ignore characters that it should.
      @Ignore
      @Test
      fun hostnameMappingLastIgnoredCodePoint() {
        assertThat(parse("http://ab\uDB40\uDDEFcd").host).isEqualTo("abcd")
      }
    
      @Test
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 67.9K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

       *
       *  * A regular host name, like `android.com`.
       *
       *  * An IPv4 address, like `127.0.0.1`.
       *
       *  * An IPv6 address, like `::1`. Note that there are no square braces.
       *
       *  * An encoded IDN, like `xn--n3h.net`.
       *
       * | URL                   | `host()`        |
       * | :-------------------- | :-------------- |
       * | `http://android.com/` | `"android.com"` |
       * | `http://127.0.0.1/`   | `"127.0.0.1"`   |
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 09 12:33:05 UTC 2024
    - 63.5K bytes
    - Viewed (0)
Back to top