- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for setPathSegmentOutOfBounds (0.07 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/HttpUrlTest.kt
val base = parse("http://host/a/b/c") val url = base.newBuilder().setPathSegment(1, "/").build() assertThat(url.encodedPath).isEqualTo("/a/%2F/c") } @Test fun setPathSegmentOutOfBounds() { assertFailsWith<IndexOutOfBoundsException> { HttpUrl.Builder().setPathSegment(1, "a") } } @Test fun setEncodedPathSegmentEncodes() {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Aug 04 07:38:48 UTC 2025 - 69.9K bytes - Viewed (0)