- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for setPathSegmentOutOfBounds (0.25 seconds)
-
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() {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Mon Aug 04 07:38:48 GMT 2025 - 69.9K bytes - Click Count (0)