open external class WebRequest : EventEmitter
WebRequest() |
open fun onBeforeRedirect(listener: (details: OnBeforeRedirectDetails) -> Unit): Unit open fun onBeforeRedirect(filter: OnBeforeRedirectFilter, listener: (details: OnBeforeRedirectDetails) -> Unit): Unit |
|
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 |
|
open fun onBeforeSendHeaders(filter: OnBeforeSendHeadersFilter, listener: Function<*>): Unit open fun onBeforeSendHeaders(listener: Function<*>): Unit |
|
open fun onCompleted(filter: OnCompletedFilter, listener: (details: OnCompletedDetails) -> Unit): Unit open fun onCompleted(listener: (details: OnCompletedDetails) -> Unit): Unit |
|
open fun onErrorOccurred(listener: (details: OnErrorOccurredDetails) -> Unit): Unit open fun onErrorOccurred(filter: OnErrorOccurredFilter, listener: (details: OnErrorOccurredDetails) -> Unit): Unit |
|
open fun onHeadersReceived(filter: OnHeadersReceivedFilter, listener: Function<*>): Unit open fun onHeadersReceived(listener: Function<*>): Unit |
|
open fun onResponseStarted(listener: (details: OnResponseStartedDetails) -> Unit): Unit open fun onResponseStarted(filter: OnResponseStartedFilter, listener: (details: OnResponseStartedDetails) -> Unit): Unit |
|
open fun onSendHeaders(filter: OnSendHeadersFilter, listener: (details: OnSendHeadersDetails) -> Unit): Unit open fun onSendHeaders(listener: (details: OnSendHeadersDetails) -> Unit): Unit |
open fun addListener(event: String, listener: Function<*>): EventEmitter |
|
open fun emit(event: String, vararg args: Any): Boolean |
|
open fun eventNames(): Array<String> |
|
open fun getMaxListeners(): Number |
|
open fun listenerCount(type: String): Number |
|
open fun listeners(event: String): Array<Function<*>> |
|
open fun on(event: String, listener: Function<*>): EventEmitter |
|
open fun once(event: String, listener: Function<*>): EventEmitter |
|
open fun prependListener(event: String, listener: Function<*>): EventEmitter |
|
open fun prependOnceListener(event: String, listener: Function<*>): EventEmitter |
|
open fun removeAllListeners(event: String? = definedExternally): EventEmitter |
|
open fun removeListener(event: String, listener: Function<*>): EventEmitter |
|
open fun setMaxListeners(n: Number): EventEmitter |
fun <T> Any?.createInstance(vararg args: dynamic): T
Helper function for creating JavaScript objects from dynamic constructors. |