Home Reference Source
import ElectronRequestCapturer from 'node-warc/lib/requestCapturers/electron.js'
public class | source

ElectronRequestCapturer

Extends:

RequestHandler → 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

Create a new ElectronRequestCapturer

Method Summary

Public Methods
public

attach(wcDebugger: Object)

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 Constructors

public constructor() source

Create a new ElectronRequestCapturer

Public Methods

public attach(wcDebugger: Object) source

Attach to the debugger requestWillBeSent and responseReceived

Params:

NameTypeAttributeDescription
wcDebugger Object

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: