Class RequestPausedEventArgs
Issued when the domain is enabled and the request URL matches the specified filter. The request is paused until the client responds with one of continueRequest, failRequest or fulfillRequest. The stage of the request can be determined by presence of responseErrorReason and responseStatusCode -- the request is at the response stage if either of these fields is present and in the request stage otherwise. Redirect responses and subsequent requests are reported similarly to regular responses and requests. Redirect responses may be distinguished by the value of responseStatusCode (which is one of 301, 302, 303, 307, 308) along with presence of the location header. Requests resulting from a redirect will have redirectedRequestId field set.
public sealed record RequestPausedEventArgs : EventArgs, IEquatable<EventArgs>, IEquatable<RequestPausedEventArgs>
- Inheritance
-
EventArgsRequestPausedEventArgs
- Implements
-
IEquatable<EventArgs>
- Inherited Members
-
EventArgs.ToString()EventArgs.GetHashCode()EventArgs.Equals(EventArgs)EventArgs.<Clone>$()EventArgs.BiDiEventArgs.AdditionalDataEventArgs.AdditionalMessageData
Constructors
RequestPausedEventArgs(RequestId, Request, FrameId, ResourceType, ErrorReason?, long?, string?, ImmutableArray<HeaderEntry>?, RequestId?, RequestId?)
Issued when the domain is enabled and the request URL matches the specified filter. The request is paused until the client responds with one of continueRequest, failRequest or fulfillRequest. The stage of the request can be determined by presence of responseErrorReason and responseStatusCode -- the request is at the response stage if either of these fields is present and in the request stage otherwise. Redirect responses and subsequent requests are reported similarly to regular responses and requests. Redirect responses may be distinguished by the value of responseStatusCode (which is one of 301, 302, 303, 307, 308) along with presence of the location header. Requests resulting from a redirect will have redirectedRequestId field set.
public RequestPausedEventArgs(RequestId RequestId, Request Request, FrameId FrameId, ResourceType ResourceType, ErrorReason? ResponseErrorReason = null, long? ResponseStatusCode = null, string? ResponseStatusText = null, ImmutableArray<HeaderEntry>? ResponseHeaders = null, RequestId? NetworkId = null, RequestId? RedirectedRequestId = null)
Parameters
RequestIdRequestIdEach request the page makes will have a unique id.
RequestRequestThe details of the request.
FrameIdFrameIdThe id of the frame that initiated the request.
ResourceTypeResourceTypeHow the requested resource will be used.
ResponseErrorReasonErrorReason?Response error if intercepted at response stage.
ResponseStatusCodelong?Response code if intercepted at response stage.
ResponseStatusTextstringResponse status text if intercepted at response stage.
ResponseHeadersImmutableArray<HeaderEntry>?Response headers if intercepted at the response stage.
NetworkIdRequestIdIf the intercepted request had a corresponding Network.requestWillBeSent event fired for it, then this networkId will be the same as the requestId present in the requestWillBeSent event.
RedirectedRequestIdRequestIdIf the request is due to a redirect response from the server, the id of the request that has caused the redirect.
Properties
FrameId
The id of the frame that initiated the request.
public FrameId FrameId { get; init; }
Property Value
NetworkId
If the intercepted request had a corresponding Network.requestWillBeSent event fired for it, then this networkId will be the same as the requestId present in the requestWillBeSent event.
public RequestId? NetworkId { get; init; }
Property Value
RedirectedRequestId
If the request is due to a redirect response from the server, the id of the request that has caused the redirect.
public RequestId? RedirectedRequestId { get; init; }
Property Value
Request
The details of the request.
public Request Request { get; init; }
Property Value
RequestId
Each request the page makes will have a unique id.
public RequestId RequestId { get; init; }
Property Value
ResourceType
How the requested resource will be used.
public ResourceType ResourceType { get; init; }
Property Value
ResponseErrorReason
Response error if intercepted at response stage.
public ErrorReason? ResponseErrorReason { get; init; }
Property Value
ResponseHeaders
Response headers if intercepted at the response stage.
public ImmutableArray<HeaderEntry>? ResponseHeaders { get; init; }
Property Value
ResponseStatusCode
Response code if intercepted at response stage.
public long? ResponseStatusCode { get; init; }
Property Value
- long?
ResponseStatusText
Response status text if intercepted at response stage.
public string? ResponseStatusText { get; init; }