import CapturedRequest from 'node-warc/lib/requestCapturers/capturedRequest.js'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 |
newOne(info: Object): CapturedRequest Create a new CapturedRequest |
|
Constructor Summary
| Public Constructor | ||
| public |
constructor(info: Object) |
|
Member Summary
| Public Members | ||
| public |
|
|
| Private Members | ||
| private |
|
|
Method Summary
| Public Methods | ||
| public |
Iterate over the RequestInfo associated with the CapturedRequests#requestId |
|
| public |
addRequestInfo(info: Object) 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:
| Name | Type | Attribute | Description |
| info | Object | The object received from Network.requestWillBeSent or Network.responseReceived |
Public Constructors
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:
| Name | Type | Attribute | Description |
| 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
public values(): Iterator<CDPRequestInfo> source
Iterate over the CDPRequestInfo associated with the CapturedRequests#requestId
