Table of Contents

Class RequestWillBeSentEventArgs

Namespace
Selenium.WebDriver.BiDi.Cdp.Network
Assembly
Selenium.WebDriver.BiDi.Cdp.dll

Fired when page is about to send HTTP request.

public sealed record RequestWillBeSentEventArgs : EventArgs, IEquatable<EventArgs>, IEquatable<RequestWillBeSentEventArgs>
Inheritance
EventArgs
RequestWillBeSentEventArgs
Implements
IEquatable<EventArgs>
Inherited Members
EventArgs.ToString()
EventArgs.GetHashCode()
EventArgs.Equals(EventArgs)
EventArgs.<Clone>$()
EventArgs.BiDi
EventArgs.AdditionalData
EventArgs.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

RequestId RequestId

Request identifier.

LoaderId LoaderId

Loader identifier. Empty string if the request is fetched from worker.

DocumentURL string

URL of the document this request is loaded for.

Request Request

Request data.

Timestamp MonotonicTime

Timestamp.

WallTime TimeSinceEpoch

Timestamp.

Initiator Initiator

Request initiator.

RedirectHasExtraInfo bool

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.

RedirectResponse Response

Redirect response data.

Type ResourceType?

Type of this resource.

FrameId FrameId

Frame identifier.

HasUserGesture bool?

Whether the request is initiated by a user gesture. Defaults to false.

RenderBlockingBehavior RenderBlockingBehavior?

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

string

FrameId

Frame identifier.

public FrameId? FrameId { get; init; }

Property Value

FrameId

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

Initiator

LoaderId

Loader identifier. Empty string if the request is fetched from worker.

public LoaderId LoaderId { get; init; }

Property Value

LoaderId

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

bool

RedirectResponse

Redirect response data.

public Response? RedirectResponse { get; init; }

Property Value

Response

RenderBlockingBehavior

The render-blocking behavior of the request.

public RenderBlockingBehavior? RenderBlockingBehavior { get; init; }

Property Value

RenderBlockingBehavior?

Request

Request data.

public Request Request { get; init; }

Property Value

Request

RequestId

Request identifier.

public RequestId RequestId { get; init; }

Property Value

RequestId

Timestamp

Timestamp.

public MonotonicTime Timestamp { get; init; }

Property Value

MonotonicTime

Type

Type of this resource.

public ResourceType? Type { get; init; }

Property Value

ResourceType?

WallTime

Timestamp.

public TimeSinceEpoch WallTime { get; init; }

Property Value

TimeSinceEpoch