Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for removePathSegmentOutOfBounds (0.11 sec)

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

            .removePathSegment(0)
            .build()
        assertThat(url.pathSegments).containsExactly("")
        assertThat(url.encodedPath).isEqualTo("/")
      }
    
      @Test
      fun removePathSegmentOutOfBounds() {
        assertFailsWith<IndexOutOfBoundsException> {
          HttpUrl.Builder().removePathSegment(1)
        }
      }
    
      @Test
      fun queryCharactersEncodedWhenComposed() {
        val url =
    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