- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for retryDecision (0.04 sec)
-
okhttp-testing-support/src/main/kotlin/okhttp3/ClientRuleEventListener.kt
) { logWithTime("cacheConditionalHit") delegate.cacheConditionalHit(call, cachedResponse) } override fun retryDecision( call: Call, exception: IOException, retry: Boolean, ) { logWithTime("retryDecision") delegate.retryDecision(call, exception, retry) } override fun followUpDecision( call: Call, networkResponse: Response,
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue May 27 14:58:02 UTC 2025 - 6.5K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/RecordingEventListener.kt
override fun cacheConditionalHit( call: Call, cachedResponse: Response, ) = logEvent(CacheConditionalHit(System.nanoTime(), call)) override fun retryDecision( call: Call, exception: IOException, retry: Boolean, ) = logEvent(RetryDecision(System.nanoTime(), call, exception, retry)) override fun followUpDecision( call: Call, networkResponse: Response, nextRequest: Request?,
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue May 27 14:58:02 UTC 2025 - 9.5K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt
"ConnectEnd", "ConnectionAcquired", "RequestHeadersStart", "RequestHeadersEnd", "ResponseFailed", "RetryDecision", "ConnectionReleased", "CallFailed", ) assertThat(listener.findEvent<RetryDecision>()).all { prop(RetryDecision::retry).isFalse() } } @Test fun failedDribbledCallEventSequence() { server.enqueue( MockResponse
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 60.4K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/CallEvent.kt
override val call: Call, ) : CallEvent() data class CacheConditionalHit( override val timestampNs: Long, override val call: Call, ) : CallEvent() data class RetryDecision( override val timestampNs: Long, override val call: Call, val exception: IOException, val retry: Boolean, ) : CallEvent() data class FollowUpDecision(
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue May 27 14:58:02 UTC 2025 - 7K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/EventListener.kt
* established from a planned [Route]. OkHttp won't retry if it's already attempted all * available routes. * * @param retry true if OkHttp will make another attempt */ open fun retryDecision( call: Call, exception: IOException, retry: Boolean, ) { } /** * Invoked when OkHttp decides whether to perform a follow-up request. *
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue May 27 14:58:02 UTC 2025 - 17.4K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/RetryAndFollowUpInterceptor.kt
} catch (e: IOException) { // An attempt to communicate with a server failed. The request may have been sent. val isRecoverable = recover(e, call, request) call.eventListener.retryDecision(call, e, isRecoverable) if (!isRecoverable) throw e.withSuppressed(recoveredFailures) recoveredFailures += e newRoutePlanner = false continue }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue May 27 14:58:02 UTC 2025 - 12.4K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt
"RequestHeadersEnd", "RequestBodyStart", "RequestBodyEnd", "ResponseFailed", "RetryDecision", "ConnectionReleased", "CallFailed", ) assertThat(listener.findEvent<RetryDecision>()).all { prop(RetryDecision::retry).isFalse() } listener.clearAllEvents() val response3 = client.newCall(request1).execute()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 146.6K bytes - Viewed (0) -
CHANGELOG.md
* Fix: Change the signature of `Dispatcher` to accept a nullable `ExecutorService`. Changing this parameter to be non-null was an unintended signature change in OkHttp 4.0. * New: `EventListener.retryDecision()` is called each time a request fails with an `IOException`. It notifies your listener if OkHttp will retry. * New: `EventListener.followUpDecision()` is called each time a response is received. It notifies
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Jul 07 19:32:33 UTC 2025 - 31.6K bytes - Viewed (1) -
okhttp/api/jvm/okhttp.api
public fun responseFailed (Lokhttp3/Call;Ljava/io/IOException;)V public fun responseHeadersEnd (Lokhttp3/Call;Lokhttp3/Response;)V public fun responseHeadersStart (Lokhttp3/Call;)V public fun retryDecision (Lokhttp3/Call;Ljava/io/IOException;Z)V public fun satisfactionFailure (Lokhttp3/Call;Lokhttp3/Response;)V public fun secureConnectEnd (Lokhttp3/Call;Lokhttp3/Handshake;)V public fun secureConnectStart (Lokhttp3/Call;)V
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 16 09:39:51 UTC 2025 - 69.4K bytes - Viewed (0) -
okhttp/api/android/okhttp.api
public fun responseFailed (Lokhttp3/Call;Ljava/io/IOException;)V public fun responseHeadersEnd (Lokhttp3/Call;Lokhttp3/Response;)V public fun responseHeadersStart (Lokhttp3/Call;)V public fun retryDecision (Lokhttp3/Call;Ljava/io/IOException;Z)V public fun satisfactionFailure (Lokhttp3/Call;Lokhttp3/Response;)V public fun secureConnectEnd (Lokhttp3/Call;Lokhttp3/Handshake;)V public fun secureConnectStart (Lokhttp3/Call;)V
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 16 09:39:51 UTC 2025 - 69.4K bytes - Viewed (0)