Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for toUriWithControlCharacters (0.08 seconds)

  1. okhttp/src/jvmTest/kotlin/okhttp3/HttpUrlJvmTest.kt

        assertThat(url.encodedFragment).isEqualTo("\u0080")
        // Control characters may be stripped!
        assertThat(url.toUri()).isEqualTo(URI("http://host/#"))
      }
    
      @Test
      fun toUriWithControlCharacters() {
        // Percent-encoded in the path.
        assertThat("http://host/a\u0000b".toHttpUrl().toUri())
          .isEqualTo(URI("http://host/a%00b"))
        assertThat("http://host/a\u0080b".toHttpUrl().toUri())
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 12K bytes
    - Click Count (0)
Back to Top