- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for doesNotAttemptAuthorization21Times (0.47 sec)
-
okhttp/src/test/java/okhttp3/URLConnectionTest.kt
.build() val response = getResponse(newRequest("/0")) assertContent("Success!", response) } @Test fun doesNotAttemptAuthorization21Times() { for (i in 0..20) { server.enqueue( MockResponse(code = 401), ) } val credential = basic("jesse", "peanutbutter") client =
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 131.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CallTest.kt
.authenticator(RecordingOkAuthenticator(credential, null)) .build() executeSynchronously("/") .assertCode(200) .assertBody("Success!") } @Test fun doesNotAttemptAuthorization21Times() { for (i in 0..20) { server.enqueue(MockResponse(code = 401)) } val credential = basic("jesse", "secret") client = client.newBuilder()
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Wed Apr 10 19:46:48 UTC 2024 - 142.5K bytes - Viewed (0)