Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for composeWithAddSegment (0.07 sec)

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

        assertThat(url.encodedPathSegments)
          .containsExactly("a%2fb", "c", "d%2525e", "f%25g")
        assertThat(url.pathSegments).containsExactly("a/b", "c", "d%25e", "f%g")
      }
    
      @Test
      fun composeWithAddSegment() {
        val base = parse("http://host/a/b/c")
        assertThat(
          base
            .newBuilder()
            .addPathSegment("")
            .build()
            .encodedPath,
        ).isEqualTo("/a/b/c/")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Aug 04 07:38:48 UTC 2025
    - 69.9K bytes
    - Viewed (0)
Back to top