- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for 0189 (0.04 seconds)
-
okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt
assertThat(recordedRequest2.body?.utf8()).isEqualTo(body) assertThat(recordedRequest2.headers["Authorization"]).isEqualTo(credential) } @Test fun attemptAuthorization20Times() { for (i in 0..19) { server.enqueue(MockResponse(code = 401)) } server.enqueue(MockResponse(body = "Success!")) val credential = basic("jesse", "secret") client = client .newBuilder()
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Mar 15 09:02:18 GMT 2026 - 146.5K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt
val page2 = server.takeRequest() assertThat(page2.requestLine) .isEqualTo("$method /page2 HTTP/1.1") } @Test fun follow20Redirects() { for (i in 0..19) { server.enqueue( MockResponse( code = HttpURLConnection.HTTP_MOVED_TEMP, headers = headersOf("Location", "/" + (i + 1)), body = "Redirecting to /" + (i + 1),
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 133.3K bytes - Click Count (0)