Class RequestWillBeSentEventArgs
Fired when page is about to send HTTP request.
public sealed record RequestWillBeSentEventArgs : EventArgs, IEquatable<EventArgs>, IEquatable<RequestWillBeSentEventArgs>
- Inheritance
-
EventArgsRequestWillBeSentEventArgs
- Implements
-
IEquatable<EventArgs>
- Inherited Members
-
EventArgs.ToString()EventArgs.GetHashCode()EventArgs.Equals(EventArgs)EventArgs.<Clone>$()EventArgs.BiDiEventArgs.AdditionalDataEventArgs.AdditionalMessageData
Constructors
RequestWillBeSentEventArgs(RequestId, LoaderId, string, Request, MonotonicTime, TimeSinceEpoch, Initiator, bool, Response?, ResourceType?, FrameId?, bool?, RenderBlockingBehavior?)
Fired when page is about to send HTTP request.
public RequestWillBeSentEventArgs(RequestId RequestId, LoaderId LoaderId, string DocumentURL, Request Request, MonotonicTime Timestamp, TimeSinceEpoch WallTime, Initiator Initiator, bool RedirectHasExtraInfo, Response? RedirectResponse = null, ResourceType? Type = null, FrameId? FrameId = null, bool? HasUserGesture = null, RenderBlockingBehavior? RenderBlockingBehavior = null)
Parameters
RequestIdRequestIdRequest identifier.
LoaderIdLoaderIdLoader identifier. Empty string if the request is fetched from worker.
DocumentURLstringURL of the document this request is loaded for.
RequestRequestRequest data.
TimestampMonotonicTimeTimestamp.
WallTimeTimeSinceEpochTimestamp.
InitiatorInitiatorRequest initiator.
RedirectHasExtraInfoboolIn the case that redirectResponse is populated, this flag indicates whether requestWillBeSentExtraInfo and responseReceivedExtraInfo events will be or were emitted for the request which was just redirected.
RedirectResponseResponseRedirect response data.
TypeResourceType?Type of this resource.
FrameIdFrameIdFrame identifier.
HasUserGesturebool?Whether the request is initiated by a user gesture. Defaults to false.
RenderBlockingBehaviorRenderBlockingBehavior?The render-blocking behavior of the request.
Properties
DocumentURL
URL of the document this request is loaded for.
public string DocumentURL { get; init; }
Property Value
FrameId
Frame identifier.
public FrameId? FrameId { get; init; }
Property Value
HasUserGesture
Whether the request is initiated by a user gesture. Defaults to false.
public bool? HasUserGesture { get; init; }
Property Value
- bool?
Initiator
Request initiator.
public Initiator Initiator { get; init; }
Property Value
LoaderId
Loader identifier. Empty string if the request is fetched from worker.
public LoaderId LoaderId { get; init; }
Property Value
RedirectHasExtraInfo
In the case that redirectResponse is populated, this flag indicates whether requestWillBeSentExtraInfo and responseReceivedExtraInfo events will be or were emitted for the request which was just redirected.
public bool RedirectHasExtraInfo { get; init; }
Property Value
RedirectResponse
Redirect response data.
public Response? RedirectResponse { get; init; }
Property Value
RenderBlockingBehavior
The render-blocking behavior of the request.
public RenderBlockingBehavior? RenderBlockingBehavior { get; init; }
Property Value
Request
Request data.
public Request Request { get; init; }
Property Value
RequestId
Request identifier.
public RequestId RequestId { get; init; }
Property Value
Timestamp
Timestamp.
public MonotonicTime Timestamp { get; init; }
Property Value
Type
Type of this resource.
public ResourceType? Type { get; init; }
Property Value
WallTime
Timestamp.
public TimeSinceEpoch WallTime { get; init; }