RequestHandler
Class Responsible For Managing The Captured Request / Responses For A Page
Constructor Summary
Public Constructor | ||
public |
Create A New RequestHandler |
Member Summary
Private Members | ||
private |
To Capture Requests Or Not To Capture Requests |
|
private |
Association Of RequestIds To CapturedRequests |
Method Summary
Public Methods | ||
public |
Get An Iterator Over The Request Id, Request Object Pairs |
|
public |
addRequestInfo(info: Object) Handles either the Network.requestWillBeSent or the Network.responseReceived events |
|
public |
clear() Remove All Requests |
|
public |
Get An Iterator Over The Request Id, Request Object Pairs |
|
public |
Apply An Iteratee Once For Each Mapped Request Id, Request Object Pair |
|
public |
get(requestId: string): CapturedRequest Retrieve The Corresponding Request Object For A Request Id |
|
public |
Does The Interceptor Have The Request Object Associated With A Request Id |
|
public |
|
|
public |
Get An Iterator Over The Request Ids |
|
public |
requestWillBeSent(info: Object) Handles the Network.requestWillBeSent event |
|
public |
responseReceived(info: Object) Handles the Network.responseReceived event |
|
public |
|
|
public |
Sets an internal flag to begin capturing network requests. |
|
public |
Sets an internal flag to stop the capturing network requests |
|
public |
Get An Iterator Over The Request Objects |
Public Constructors
Private Members
private _requests: Map<string, CapturedRequest> source
Association Of RequestIds To CapturedRequests
Public Methods
public [Symbol.iterator](): Iterator source
Get An Iterator Over The Request Id, Request Object Pairs
public addRequestInfo(info: Object) source
Handles either the Network.requestWillBeSent or the Network.responseReceived events
Params:
Name | Type | Attribute | Description |
info | Object |
public forEach(iteratee: function, thisArg: *) source
Apply An Iteratee Once For Each Mapped Request Id, Request Object Pair
Params:
Name | Type | Attribute | Description |
iteratee | function |
|
the function to be applied |
thisArg | * |
|
optional this argument |
public get(requestId: string): CapturedRequest source
Retrieve The Corresponding Request Object For A Request Id
Params:
Name | Type | Attribute | Description |
requestId | string |
|
public has(requestId: string): boolean source
Does The Interceptor Have The Request Object Associated With A Request Id
Params:
Name | Type | Attribute | Description |
requestId | string |
|
public requestWillBeSent(info: Object) source
Handles the Network.requestWillBeSent event
Params:
Name | Type | Attribute | Description |
info | Object |
public responseReceived(info: Object) source
Handles the Network.responseReceived event
Params:
Name | Type | Attribute | Description |
info | Object |
public startCapturing() source
Sets an internal flag to begin capturing network requests. Clears Any Previously Captured Request Information