kvision / pl.treksoft.kvision.electron / WebRequest

WebRequest

(js) open class WebRequest : EventEmitter

Constructors

(js)

<init>

WebRequest()

Functions

(js)

onBeforeRedirect

open fun onBeforeRedirect(listener: (details: OnBeforeRedirectDetails) -> Unit): Unit
open fun onBeforeRedirect(filter: OnBeforeRedirectFilter, listener: (details: OnBeforeRedirectDetails) -> Unit): Unit
(js)

onBeforeRequest

open fun onBeforeRequest(listener: (details: OnBeforeRequestDetails, callback: (response: Response) -> Unit) -> Unit): Unit
open fun onBeforeRequest(filter: OnBeforeRequestFilter, listener: (details: OnBeforeRequestDetails, callback: (response: Response) -> Unit) -> Unit): Unit
(js)

onBeforeSendHeaders

open fun onBeforeSendHeaders(filter: OnBeforeSendHeadersFilter, listener: Function<*>): Unit
open fun onBeforeSendHeaders(listener: Function<*>): Unit
(js)

onCompleted

open fun onCompleted(filter: OnCompletedFilter, listener: (details: OnCompletedDetails) -> Unit): Unit
open fun onCompleted(listener: (details: OnCompletedDetails) -> Unit): Unit
(js)

onErrorOccurred

open fun onErrorOccurred(listener: (details: OnErrorOccurredDetails) -> Unit): Unit
open fun onErrorOccurred(filter: OnErrorOccurredFilter, listener: (details: OnErrorOccurredDetails) -> Unit): Unit
(js)

onHeadersReceived

open fun onHeadersReceived(filter: OnHeadersReceivedFilter, listener: Function<*>): Unit
open fun onHeadersReceived(listener: Function<*>): Unit
(js)

onResponseStarted

open fun onResponseStarted(listener: (details: OnResponseStartedDetails) -> Unit): Unit
open fun onResponseStarted(filter: OnResponseStartedFilter, listener: (details: OnResponseStartedDetails) -> Unit): Unit
(js)

onSendHeaders

open fun onSendHeaders(filter: OnSendHeadersFilter, listener: (details: OnSendHeadersDetails) -> Unit): Unit
open fun onSendHeaders(listener: (details: OnSendHeadersDetails) -> Unit): Unit