Home Reference Source
public class | source

CapturedRequest

Represents A Unique Request And Response Chain As Made By A Page Consolidates The Modification Of HTTP/2 Into HTTP/1.1 Provides Utility Functionality For Serialization To WARC

Static Method Summary

Static Public Methods
public static

Create a new CapturedRequest

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
Private Members
private

Method Summary

Public Methods
public

Iterate over the RequestInfo associated with the CapturedRequests#requestId

public

Add request information

public

Iterate over the RequestInfo#url associated with the CapturedRequests#requestId

public
public

Iterate over the CDPRequestInfo associated with the CapturedRequests#requestId

Static Public Methods

public static newOne(info: Object): CapturedRequest source

Create a new CapturedRequest

Params:

NameTypeAttributeDescription
info Object

The object received from Network.requestWillBeSent or Network.responseReceived

Return:

CapturedRequest

Public Constructors

public constructor(info: Object) source

Params:

NameTypeAttributeDescription
info Object

The object received from Network.requestWillBeSent or Network.responseReceived

Public Members

public requestId: string source

Private Members

private _reqs: Map<string, CDPRequestInfo> source

Public Methods

public [Symbol.iterator](): Iterator<CDPRequestInfo> source

Iterate over the RequestInfo associated with the CapturedRequests#requestId

public addRequestInfo(info: Object) source

Add request information

Params:

NameTypeAttributeDescription
info Object

The object received from Network.requestWillBeSent or Network.responseReceived

public keys(): Iterator<string> source

Iterate over the RequestInfo#url associated with the CapturedRequests#requestId

Return:

Iterator<string>

public url(): string | Array<string> source

Return:

string | Array<string>

public values(): Iterator<CDPRequestInfo> source

Iterate over the CDPRequestInfo associated with the CapturedRequests#requestId