Skip to content

//okhttp/okhttp3/EventListener/responseHeadersStart

responseHeadersStart

[jvm]\ open fun responseHeadersStart(call: Call)

Invoked when response headers are first returned from the server.

The connection is implicit, and will generally relate to the last connectionAcquired event.

This can be invoked more than 1 time for a single Call. For example, if the response to the Call.request is a redirect to a different address.

Prior to OkHttp 4.3 this was incorrectly invoked when the client was ready to read headers. This was misleading for tracing because it was too early.