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:

ParameterTypeDescription
filterElectronWebRequestFilterThe filter narrowing which requests are observed.
listener((details: ElectronOnResponseStartedListenerDetails) => void) | nullCalled 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:

ParameterTypeDescription
listener((details: ElectronOnResponseStartedListenerDetails) => void) | nullCalled with the request details, or null to remove the listener.

Returns: void