- Sort Score
- Result 10 results
- Languages All
Results 41 - 49 of 49 for eventListeners (0.06 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/JSSETest.kt
val sessionIds = mutableListOf<String>() assumeNetwork() client = client .newBuilder() .eventListenerFactory( clientTestRule.wrap( object : EventListener() { override fun connectionAcquired( call: Call, connection: Connection, ) { val sslSocket = connection.socket() as SSLSocket
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 5.5K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/CallEvent.kt
import java.io.IOException import java.net.InetAddress import java.net.InetSocketAddress import java.net.Proxy import okhttp3.internal.SuppressSignatureCheck /** Data classes that correspond to each of the methods of [EventListener]. */ @SuppressSignatureCheck sealed class CallEvent { abstract val timestampNs: Long abstract val call: Call val name: String get() = javaClass.simpleName
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue May 27 14:58:02 UTC 2025 - 7K bytes - Viewed (0) -
docs/changelogs/changelog_3x.md
call. The `RequestBody.writeTo()` method may now retain a reference to the provided sink and hand it off to another thread to write to it after `writeTo` returns. The `EventListener` may now see requests and responses interleaved in ways not previously permitted. For example, a listener may receive `responseHeadersStart()` followed by
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sun Feb 06 14:55:54 UTC 2022 - 50.8K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http/CancelTest.kt
return socket } }, ).sslSocketFactory( handshakeCertificates.sslSocketFactory(), handshakeCertificates.trustManager, ).eventListener(listener) .apply { if (connectionType == HTTPS) { protocols(listOf(HTTP_1_1)) } }.build() threadToCancel = Thread.currentThread() }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 9.8K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/tls/ClientAuthTest.kt
.build() var client = buildClient(clientCert, clientIntermediateCa.certificate) val listener = RecordingEventListener() client = client .newBuilder() .eventListener(listener) .build() val socketFactory = buildServerSslSocketFactory() server.useHttps(socketFactory) server.requireClientAuth()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 12.7K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt
fun connectionIsImmediatelyUnhealthy() { val listener: EventListener = object : EventListener() { override fun connectionAcquired( call: Call, connection: Connection, ) { connection.socket().closeQuietly() } } client = client .newBuilder() .eventListener(listener) .build()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 146.6K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt
MockResponse(body = "XXX"), ) val connections: MutableList<RealConnection?> = ArrayList() val localClient = client .newBuilder() .eventListener( object : EventListener() { override fun connectionAcquired( call: Call, connection: Connection, ) { connections.add(connection as RealConnection)
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 73.4K bytes - Viewed (0) -
CHANGELOG.md
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/src/jvmTest/kotlin/okhttp3/DuplexTest.kt
throw AssertionError() } super.responseHeadersEnd(call, response) } } client = client .newBuilder() .eventListener(listener) .build() val body = MockSocketHandler() .sendResponse("/a has moved!\n", duplexResponseSent) .requestIOException() .exhaustResponse() server.enqueue(
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 24.8K bytes - Viewed (0)