onHeadersReceived

fun onHeadersReceived(filter: WebRequestFilter, listener: (details: OnHeadersReceivedListenerDetails, callback: (headersReceivedResponse: HeadersReceivedResponse) -> Unit) -> Unit?)(source)
fun onHeadersReceived(listener: (details: OnHeadersReceivedListenerDetails, callback: (headersReceivedResponse: HeadersReceivedResponse) -> Unit) -> Unit?)(source)

The listener will be called with listener(details, callback) when HTTP response headers of a request have been received.

The callback has to be called with a response object.