okhttp / okhttp3 / EventListener / requestBodyStart

requestBodyStart

open fun requestBodyStart(call: Call): Unit

Invoked just prior to sending a request body. Will only be invoked for request allowing and having a request body to send.

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.