onBeforeRequest

fun onBeforeRequest(filter: WebRequestFilter, listener: (details: OnBeforeRequestListenerDetails, callback: (response: CallbackResponse) -> Unit) -> Unit?)(source)
fun onBeforeRequest(listener: (details: OnBeforeRequestListenerDetails, callback: (response: CallbackResponse) -> Unit) -> Unit?)(source)

The listener will be called with listener(details, callback) when a request is about to occur.

The uploadData is an array of UploadData objects.

The callback has to be called with an response object.

Some examples of valid urls: