- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 23 for EventListener (0.24 sec)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/EventListener.kt
* from this method.** */ fun create(call: Call): EventListener } companion object { @JvmField val NONE: EventListener = object : EventListener() { } } private class AggregateEventListener( val eventListeners: Array<EventListener>, ) : EventListener() { override fun callStart(call: Call) { for (delegate in eventListeners) {Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue Oct 07 21:03:04 UTC 2025 - 24.9K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/ConnectPlan.kt
) this.connection = connection connection.start() // Success. call.eventListener.connectEnd(call, route.socketAddress, route.proxy, protocol) success = true return ConnectResult(plan = this) } catch (e: IOException) { call.eventListener.connectFailed(call, route.socketAddress, route.proxy, null, e) connectionPool.connectionListener.connectFailed(route, call, e)Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Oct 08 03:50:05 UTC 2025 - 19.3K bytes - Viewed (2) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealCall.kt
override fun timeout(): Timeout = timeout override fun addEventListener(eventListener: EventListener) { // Atomically replace the current eventListener with a composite one. do { val previous = this.eventListener } while (!eventListenerUpdater.compareAndSet(this, previous, previous + eventListener)) } override fun <T : Any> tag(type: KClass<T>): T? = type.java.cast(tags.get()[type])
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Nov 05 18:28:35 UTC 2025 - 19.7K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt
ioe: IOException, ) = TODO() override fun canceled(call: Call) = TODO() } val none: EventListener = EventListener.NONE } @Test fun eventListenerBuilder() { var builder: EventListener.Factory = EventListener.Factory { TODO() } } @Test fun formBody() { val formBody: FormBody = FormBody.Builder().build()Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Nov 05 18:28:35 UTC 2025 - 47K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/ServerTruncatesRequestTest.kt
} val localClient = client.newBuilder().eventListener(eventListener).build() val call1 = localClient.newCall(Request(server.url("/"))) call1.execute().use { response -> assertThat(response.body.string()).isEqualTo("Req1") assertThat(response.handshake).isNotNull() assertThat(response.protocol == Protocol.HTTP_1_1) } eventListener.closed = trueRegistered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue Nov 04 19:13:52 UTC 2025 - 10.4K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/Exchange.kt
} if (requestDone) { if (e != null) { call.eventListener.requestFailed(call, e) } else { call.eventListener.requestBodyEnd(call, bytesRead) } } if (responseDone) { if (e != null) { call.eventListener.responseFailed(call, e) } else { call.eventListener.responseBodyEnd(call, bytesRead) } } return call.messageDone(Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Nov 05 18:28:35 UTC 2025 - 10.5K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/CacheInterceptor.kt
.build() .also { call.eventListener.satisfactionFailure(call, it) } } // If we don't need the network, we're done. if (networkRequest == null) { return cacheResponse!! .newBuilder() .cacheResponse(cacheResponse.stripBody()) .build() .also { call.eventListener.cacheHit(call, it) } }
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Nov 05 18:28:35 UTC 2025 - 10.3K bytes - Viewed (0) -
android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt
.build() val dohDns = buildCloudflareIp(client) val dohEnabledClient = client .newBuilder() .eventListener(EventListener.NONE) .dns(dohDns) .build() dohEnabledClient.get("https://www.twitter.com/robots.txt") dohEnabledClient.get("https://www.facebook.com/robots.txt") } @Test
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue Nov 04 19:13:52 UTC 2025 - 29.9K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/ConnectionCoalescingTest.kt
val latch1 = CountDownLatch(1) val latch2 = CountDownLatch(1) val latch3 = CountDownLatch(1) val latch4 = CountDownLatch(1) val listener1: EventListener = object : EventListener() { override fun connectStart( call: Call, inetSocketAddress: InetSocketAddress, proxy: Proxy, ) { try {
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Thu Jun 19 11:44:16 UTC 2025 - 19.1K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/kt/WiresharkExample.kt
*/ @SuppressSignatureCheck class WireSharkListenerFactory( private val logFile: File, private val tlsVersions: List<TlsVersion>, private val launch: Launch? = null, ) : EventListener.Factory { override fun create(call: Call): EventListener = WireSharkKeyLoggerListener(logFile, launch == null) fun launchWireShark(): Process? { when (launch) { null -> { if (tlsVersions.contains(TLS_1_2)) {
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Sat May 10 11:15:14 UTC 2025 - 10.9K bytes - Viewed (0)