- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 41 for connectionAcquired (0.12 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt
) val response = call.execute() assertThat(response.code).isEqualTo(200) response.body.close() val connectionAcquired = listener.removeUpToEvent<ConnectionAcquired>() assertThat(connectionAcquired.call).isSameAs(call) assertThat(connectionAcquired.connection).isNotNull() } @Test fun noConnectionFoundOnFollowUp() { 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/src/jvmTest/kotlin/okhttp3/RouteFailureTest.kt
assertThat(clientTestRule.recordedConnectionEventTypes()).containsExactly( "ConnectStart", "ConnectEnd", "ConnectionAcquired", "NoNewExchanges", "ConnectionReleased", "ConnectionClosed", "ConnectStart", "ConnectEnd", "ConnectionAcquired", "ConnectionReleased", ) } @Test fun http2OneBadHostOneGoodNoRetryOnConnectionFailureFastFallback() {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 11.7K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/CallConnectionUser.kt
override fun connectionConnectEnd( connection: Connection, route: Route, ) { poolConnectionListener.connectEnd(connection, route, call) } override fun connectionAcquired(connection: Connection) { eventListener.connectionAcquired(call, connection) } override fun acquireConnectionNoEvents(connection: RealConnection) { call.acquireConnectionNoEvents(connection) }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri May 30 21:28:20 UTC 2025 - 4.1K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/EventListener.kt
* to the [Call.request] is a redirect to a different address. */ open fun connectionAcquired( call: Call, connection: Connection, ) { } /** * Invoked after a connection has been released for the `call`. * * This method is always invoked after [connectionAcquired]. * * This can be invoked more than 1 time for a single [Call]. For example, if the response to the
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/jvmTest/kotlin/okhttp3/ConnectionListenerTest.kt
.execute() .close() assertThat(listener.recordedEventTypes()).containsExactly( "ConnectStart", "ConnectEnd", "ConnectionAcquired", "ConnectionReleased", "ConnectionAcquired", "ConnectionReleased", ) } @Test @Throws(IOException::class) fun successfulEmptyH2CallEventSequence() { enableTls()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 9.8K bytes - Viewed (0) -
okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/LoggingEventListener.kt
proxy: Proxy, protocol: Protocol?, ioe: IOException, ) { logWithTime("connectFailed: $protocol $ioe") } override fun connectionAcquired( call: Call, connection: Connection, ) { logWithTime("connectionAcquired: $connection") } override fun connectionReleased( call: Call, connection: Connection, ) { logWithTime("connectionReleased") }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Apr 01 11:07:32 UTC 2024 - 5.4K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http/CancelTest.kt
} addAll(listOf("ConnectionAcquired", "ConnectionReleased", "CallEnd")) } assertThat(events2).isEqualTo(expectedEvents2) } private fun isConnectionEvent(it: CallEvent?) = it is CallStart || it is CallEnd || it is ConnectStart || it is ConnectEnd || it is ConnectionAcquired || it is ConnectionReleased || it is Canceled ||
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 9.8K bytes - Viewed (0) -
android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt
client = OkHttpClient .Builder() .eventListenerFactory( clientTestRule.wrap( object : EventListener() { override fun connectionAcquired( call: Call, connection: Connection, ) { socketClass = connection.socket().javaClass.name } },
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 02 14:12:28 UTC 2025 - 29K bytes - Viewed (0) -
okhttp-logging-interceptor/src/test/java/okhttp3/logging/LoggingEventListenerTest.kt
.assertLogMatch(Regex("""connectStart: ${url.host}/.+ DIRECT""")) .assertLogMatch(Regex("""connectEnd: http/1.1""")) .assertLogMatch( Regex( """connectionAcquired: Connection\{${url.host}:\d+, proxy=DIRECT hostAddress=${url.host}/.+ cipherSuite=none protocol=http/1\.1\}""", ), ).assertLogMatch(Regex("""requestHeadersStart"""))
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 10.2K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/ServerTruncatesRequestTest.kt
expectedEvents += "ConnectStart" if (https) { expectedEvents += "SecureConnectStart" expectedEvents += "SecureConnectEnd" } expectedEvents += "ConnectEnd" expectedEvents += "ConnectionAcquired" expectedEvents += "RequestHeadersStart" expectedEvents += "RequestHeadersEnd" expectedEvents += "RequestBodyStart" // ... but we can read the response even after writing the request fails.
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 9.4K bytes - Viewed (0)