- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 28 for CallStart (0.51 seconds)
-
okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt
abcd.callStart(FailingCall()) assertThat(a.takeEvent()).isInstanceOf<CallStart>() assertThat(a.eventSequence).isEmpty() assertThat(b.takeEvent()).isInstanceOf<CallStart>() assertThat(b.eventSequence).isEmpty() assertThat(c.takeEvent()).isInstanceOf<CallStart>() assertThat(c.eventSequence).isEmpty()Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Feb 03 22:17:59 GMT 2026 - 70.7K bytes - Click Count (0) -
docs/features/events.md
long nowNanos = System.nanoTime(); if (name.equals("callStart")) { callStartNanos = nowNanos; } long elapsedNanos = nowNanos - callStartNanos; System.out.printf("%.3f %s%n", elapsedNanos / 1000000000d, name); } @Override public void callStart(Call call) { printEvent("callStart"); } @Override public void callEnd(Call call) { printEvent("callEnd"); }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Mar 15 09:01:42 GMT 2026 - 7.7K bytes - Click Count (0) -
okhttp-logging-interceptor/src/test/java/okhttp3/logging/LoggingEventListenerTest.kt
.build(), ) val response = client.newCall(request().build()).execute() assertThat(response.body).isNotNull() response.body.bytes() logRecorder .assertLogMatch(Regex("""callStart: Request\{method=GET, url=$url\}""")) .assertLogMatch(Regex("""proxySelectStart: $url""")) .assertLogMatch(Regex("""proxySelectEnd: \[DIRECT]""")) .assertLogMatch(Regex("""dnsStart: ${url.host}"""))
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Jun 20 11:46:46 GMT 2025 - 10.2K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/DispatcherTest.kt
dispatcher.maxRequests = 2 // Trigger promotion. callback.await(request2.url).assertFailure(InterruptedIOException::class.java) assertThat(eventRecorder.recordedEventTypes()) .containsExactly(CallStart::class, CallStart::class, CallFailed::class) } @Test fun executionRejectedAfterMaxRequestsPerHostChange() { val request1 = newRequest("http://a/1") val request2 = newRequest("http://a/2")Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Nov 04 19:13:52 GMT 2025 - 15.8K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http/HttpUpgradesTest.kt
import kotlin.test.assertFailsWith import mockwebserver3.MockResponse import mockwebserver3.MockWebServer import mockwebserver3.junit5.StartStop import okhttp3.CallEvent.CallEnd import okhttp3.CallEvent.CallStart import okhttp3.CallEvent.ConnectEnd import okhttp3.CallEvent.ConnectStart import okhttp3.CallEvent.ConnectionAcquired import okhttp3.CallEvent.ConnectionReleased import okhttp3.CallEvent.DnsEnd
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Feb 08 21:07:01 GMT 2026 - 9.7K bytes - Click Count (0) -
samples/guide/src/main/java/okhttp3/recipes/PrintEventsNonConcurrent.java
long nowNanos = System.nanoTime(); if (name.equals("callStart")) { callStartNanos = nowNanos; } long elapsedNanos = nowNanos - callStartNanos; System.out.printf("%.3f %s%n", elapsedNanos / 1000000000d, name); } @Override public void callStart(Call call) { printEvent("callStart"); } @Override public void proxySelectStart(Call call, HttpUrl url) {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Feb 16 23:20:49 GMT 2020 - 5.3K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/EventListener.kt
* * This will be invoked only once for a single [Call]. Retries of different routes or redirects * will be handled within the boundaries of a single [callStart] and [callEnd]/[callFailed] pair. */ open fun callStart(call: Call) { } /** * Invoked for calls that were not executed immediately because resources weren't available. The * call will remain in the queue until resources are available.
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Oct 07 21:03:04 GMT 2025 - 24.9K bytes - Click Count (0) -
okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/LoggingEventListener.kt
*/ class LoggingEventListener private constructor( private val logger: HttpLoggingInterceptor.Logger, ) : EventListener() { private var startNs: Long = 0 override fun callStart(call: Call) { startNs = System.nanoTime() logWithTime("callStart: ${call.request()}") } override fun dispatcherQueueStart( call: Call, dispatcher: Dispatcher, ) {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Mon Oct 06 13:40:20 GMT 2025 - 5.8K bytes - Click Count (0) -
docs/features/caching.md
containing a query. - CallStart - **CacheHit** - CallEnd ### Cache Miss Under a cache miss the normal request events are seen but an additional event shows the presence of the cache. Cache Miss will be typical if the item has not been read from the network, is uncacheable, or is past it's lifetime based on Response cache headers. - CallStart - **CacheMiss** - ProxySelectStart
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Mar 15 09:01:42 GMT 2026 - 3.1K bytes - Click Count (1) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealCall.kt
timeout.enter() callStart() try { client.dispatcher.executed(this) return getResponseWithInterceptorChain() } finally { client.dispatcher.finished(this) } } override fun enqueue(responseCallback: Callback) { check(executed.compareAndSet(false, true)) { "Already Executed" } callStart()Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Jan 11 12:06:21 GMT 2026 - 19.5K bytes - Click Count (0)