- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for RequestBodyEnd (0.16 sec)
-
okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/LoggingEventListener.kt
) { logWithTime("requestHeadersEnd") } override fun requestBodyStart(call: Call) { logWithTime("requestBodyStart") } override fun requestBodyEnd( call: Call, byteCount: Long, ) { logWithTime("requestBodyEnd: byteCount=$byteCount") } override fun requestFailed( call: Call, ioe: IOException, ) { logWithTime("requestFailed: $ioe") }
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-testing-support/src/main/kotlin/okhttp3/ClientRuleEventListener.kt
logWithTime("requestBodyStart") delegate.requestBodyStart(call) } override fun requestBodyEnd( call: Call, byteCount: Long, ) { logWithTime("requestBodyEnd: byteCount=$byteCount") delegate.requestBodyEnd(call, byteCount) } override fun requestFailed( call: Call, ioe: IOException, ) {
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/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt
} if (requestBodyBytes != null) { val responseBodyEnd: RequestBodyEnd = listener.removeUpToEvent<RequestBodyEnd>() MatcherAssert.assertThat( "request body bytes", responseBodyEnd.bytesWritten, requestBodyBytes, ) } else { assertThat(listener.recordedEventTypes()).doesNotContain("RequestBodyEnd") } if (responseHeaderLength != null) {
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/RecordingEventListener.kt
override fun requestBodyStart(call: Call) = logEvent(RequestBodyStart(System.nanoTime(), call)) override fun requestBodyEnd( call: Call, byteCount: Long, ) = logEvent(RequestBodyEnd(System.nanoTime(), call, byteCount)) override fun requestFailed( call: Call, ioe: IOException, ) = logEvent(RequestFailed(System.nanoTime(), call, ioe))
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/internal/http/HttpUpgradesTest.kt
assertThat(response.code).isEqualTo(200) assertThat(response.socket).isNull() assertThat(response.body.string()).isEqualTo("normal request") } // Confirm there's no RequestBodyStart/RequestBodyEnd on failed upgrades. assertThat(listener.recordedEventTypes()).containsExactly( "CallStart", "ProxySelectStart", "ProxySelectEnd", "DnsStart", "DnsEnd",
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 7.1K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/EventListener.kt
* * connection held ([connectionAcquired], [connectionReleased]) * * request ([requestFailed]) * * headers ([requestHeadersStart], [requestHeadersEnd]) * * body ([requestBodyStart], [requestBodyEnd]) * * response ([responseFailed]) * * headers ([responseHeadersStart], [responseHeadersEnd]) * * body ([responseBodyStart], [responseBodyEnd]) *
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-logging-interceptor/api/logging-interceptor.api
public fun dnsStart (Lokhttp3/Call;Ljava/lang/String;)V public fun proxySelectEnd (Lokhttp3/Call;Lokhttp3/HttpUrl;Ljava/util/List;)V public fun proxySelectStart (Lokhttp3/Call;Lokhttp3/HttpUrl;)V public fun requestBodyEnd (Lokhttp3/Call;J)V public fun requestBodyStart (Lokhttp3/Call;)V public fun requestFailed (Lokhttp3/Call;Ljava/io/IOException;)V public fun requestHeadersEnd (Lokhttp3/Call;Lokhttp3/Request;)V
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Apr 06 09:14:38 UTC 2024 - 4.5K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/CallEvent.kt
} data class RequestBodyStart( override val timestampNs: Long, override val call: Call, ) : CallEvent() data class RequestBodyEnd( override val timestampNs: Long, override val call: Call, val bytesWritten: Long, ) : CallEvent() { override fun closes(event: CallEvent): Boolean = event is RequestBodyStart && call == event.call
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/internal/connection/Exchange.kt
): IOException? { if (e != null) { trackFailure(e) } if (requestDone) { if (e != null) { eventListener.requestFailed(call, e) } else { eventListener.requestBodyEnd(call, bytesRead) } } if (responseDone) { if (e != null) { eventListener.responseFailed(call, e) } else { eventListener.responseBodyEnd(call, bytesRead) }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue Jul 29 22:04:11 UTC 2025 - 9.7K bytes - Viewed (0) -
okhttp-logging-interceptor/src/test/java/okhttp3/logging/LoggingEventListenerTest.kt
), ).assertLogMatch(Regex("""requestHeadersStart""")) .assertLogMatch(Regex("""requestHeadersEnd""")) .assertLogMatch(Regex("""requestBodyStart""")) .assertLogMatch(Regex("""requestBodyEnd: byteCount=6""")) .assertLogMatch(Regex("""responseHeadersStart""")) .assertLogMatch(Regex("""responseHeadersEnd: Response\{protocol=http/1\.1, code=200, message=OK, url=$url\}"""))
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 10.2K bytes - Viewed (0)