Skip to content

ElectronWebRequest.onResponseStarted method

ElectronWebRequest › onResponseStarted

Unofficial

Registers a listener called when the first byte of the response body is received, filtered by filter.

Signature:

onResponseStarted(filter: ElectronWebRequestFilter, listener: ((details: ElectronOnResponseStartedListenerDetails) => void) | null): void

Parameters:

Parameter Type Description
filter ElectronWebRequestFilter The filter narrowing which requests are observed.
listener ((details: ElectronOnResponseStartedListenerDetails) => void) | null Called with the request details, or null to remove the listener.

Returns: void


Unofficial

Registers a listener called when the first byte of the response body is received.

Signature:

onResponseStarted(listener: ((details: ElectronOnResponseStartedListenerDetails) => void) | null): void

Parameters:

Parameter Type Description
listener ((details: ElectronOnResponseStartedListenerDetails) => void) | null Called with the request details, or null to remove the listener.

Returns: void