onResponseStarted

external fun onResponseStarted(filter: WebRequestFilter, listener: (details: OnResponseStartedListenerDetails) -> Unit?)(source)
external fun onResponseStarted(listener: (details: OnResponseStartedListenerDetails) -> Unit?)(source)

The listener will be called with listener(details) when first byte of the response body is received. For HTTP requests, this means that the status line and response headers are available.