Home Reference Source Repository
public class | source

ElectronRequestCapturer

Extends:

* → ElectronRequestCapturer

The remote electron request chapturer to use along side ElectronWARCGenerator

See the documentation for attach and maybeNetworkMessage for setup information

Controlled via startCapturing and stopCapturing

See:

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

set: *

Method Summary

Public Methods
public

attach(wcDebugger: *)

Attach to the debugger _requestWillBeSent and _responseReceived

public

maybeNetworkMessage(method: string, params: Object)

Rather than adding an additional listener to the debugger pass the two relevant parameters of the listener to this method.

public

Sets an internal flag to begin capturing network requests

public

Sets an internal flag to stop the capturing network requests

Public Constructors

public constructor() source

Public Members

public set: * source

Public Methods

public attach(wcDebugger: *) source

Attach to the debugger _requestWillBeSent and _responseReceived

Params:

NameTypeAttributeDescription
wcDebugger *

the debugger

See:

public maybeNetworkMessage(method: string, params: Object) source

Rather than adding an additional listener to the debugger pass the two relevant parameters of the listener to this method. Useful if you are already listening to some other event. attach, _requestWillBeSent and _responseReceived

Params:

NameTypeAttributeDescription
method string

the event method

params Object

the parameters of the event

See:

public startCapturing() source

Sets an internal flag to begin capturing network requests

public stopCapturing() source

Sets an internal flag to stop the capturing network requests