Table of Contents

Class RequestWillBeSentExtraInfoEventArgs

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

Fired when additional information about a requestWillBeSent event is available from the network stack. Not every requestWillBeSent event will have an additional requestWillBeSentExtraInfo fired for it, and there is no guarantee whether requestWillBeSent or requestWillBeSentExtraInfo will be fired first for the same request.

public sealed record RequestWillBeSentExtraInfoEventArgs : EventArgs, IEquatable<EventArgs>, IEquatable<RequestWillBeSentExtraInfoEventArgs>
Inheritance
EventArgs
RequestWillBeSentExtraInfoEventArgs
Implements
IEquatable<EventArgs>
Inherited Members
EventArgs.ToString()
EventArgs.GetHashCode()
EventArgs.Equals(EventArgs)
EventArgs.<Clone>$()
EventArgs.BiDi
EventArgs.AdditionalData
EventArgs.AdditionalMessageData

Constructors

RequestWillBeSentExtraInfoEventArgs(RequestId, ImmutableArray<AssociatedCookie>, IReadOnlyDictionary<string, string>, ConnectTiming, ImmutableArray<DeviceBoundSessionWithUsage>?, ClientSecurityState?, bool?, string?)

Fired when additional information about a requestWillBeSent event is available from the network stack. Not every requestWillBeSent event will have an additional requestWillBeSentExtraInfo fired for it, and there is no guarantee whether requestWillBeSent or requestWillBeSentExtraInfo will be fired first for the same request.

public RequestWillBeSentExtraInfoEventArgs(RequestId RequestId, ImmutableArray<AssociatedCookie> AssociatedCookies, IReadOnlyDictionary<string, string> Headers, ConnectTiming ConnectTiming, ImmutableArray<DeviceBoundSessionWithUsage>? DeviceBoundSessionUsages = null, ClientSecurityState? ClientSecurityState = null, bool? SiteHasCookieInOtherPartition = null, string? AppliedNetworkConditionsId = null)

Parameters

RequestId RequestId

Request identifier. Used to match this information to an existing requestWillBeSent event.

AssociatedCookies ImmutableArray<AssociatedCookie>

A list of cookies potentially associated to the requested URL. This includes both cookies sent with the request and the ones not sent; the latter are distinguished by having blockedReasons field set.

Headers IReadOnlyDictionary<string, string>

Raw request headers as they will be sent over the wire.

ConnectTiming ConnectTiming

Connection timing information for the request.

DeviceBoundSessionUsages ImmutableArray<DeviceBoundSessionWithUsage>?

How the request site's device bound sessions were used during this request.

ClientSecurityState ClientSecurityState

The client security state set for the request.

SiteHasCookieInOtherPartition bool?

Whether the site has partitioned cookies stored in a partition different than the current one.

AppliedNetworkConditionsId string

The network conditions id if this request was affected by network conditions configured via emulateNetworkConditionsByRule.

Properties

AppliedNetworkConditionsId

The network conditions id if this request was affected by network conditions configured via emulateNetworkConditionsByRule.

public string? AppliedNetworkConditionsId { get; init; }

Property Value

string

AssociatedCookies

A list of cookies potentially associated to the requested URL. This includes both cookies sent with the request and the ones not sent; the latter are distinguished by having blockedReasons field set.

public ImmutableArray<AssociatedCookie> AssociatedCookies { get; init; }

Property Value

ImmutableArray<AssociatedCookie>

ClientSecurityState

The client security state set for the request.

public ClientSecurityState? ClientSecurityState { get; init; }

Property Value

ClientSecurityState

ConnectTiming

Connection timing information for the request.

public ConnectTiming ConnectTiming { get; init; }

Property Value

ConnectTiming

DeviceBoundSessionUsages

How the request site's device bound sessions were used during this request.

public ImmutableArray<DeviceBoundSessionWithUsage>? DeviceBoundSessionUsages { get; init; }

Property Value

ImmutableArray<DeviceBoundSessionWithUsage>?

Headers

Raw request headers as they will be sent over the wire.

public IReadOnlyDictionary<string, string> Headers { get; init; }

Property Value

IReadOnlyDictionary<string, string>

RequestId

Request identifier. Used to match this information to an existing requestWillBeSent event.

public RequestId RequestId { get; init; }

Property Value

RequestId

SiteHasCookieInOtherPartition

Whether the site has partitioned cookies stored in a partition different than the current one.

public bool? SiteHasCookieInOtherPartition { get; init; }

Property Value

bool?