Table of Contents

Class ResponseReceivedExtraInfoEventArgs

Namespace
OpenQA.Selenium.DevTools.V146.Network
Assembly
Selenium.WebDriver.dll

Fired when additional information about a responseReceived event is available from the network stack. Not every responseReceived event will have an additional responseReceivedExtraInfo for it, and responseReceivedExtraInfo may be fired before or after responseReceived.

public sealed class ResponseReceivedExtraInfoEventArgs : EventArgs
Inheritance
ResponseReceivedExtraInfoEventArgs
Inherited Members

Properties

BlockedCookies

A list of cookies which were not stored from the response along with the corresponding reasons for blocking. The cookies here may not be valid due to syntax errors, which are represented by the invalid cookie line string instead of a proper cookie.

[JsonPropertyName("blockedCookies")]
public BlockedSetCookieWithReason[] BlockedCookies { get; set; }

Property Value

BlockedSetCookieWithReason[]

CookiePartitionKey

The cookie partition key that will be used to store partitioned cookies set in this response. Only sent when partitioned cookies are enabled.

[JsonPropertyName("cookiePartitionKey")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public CookiePartitionKey? CookiePartitionKey { get; set; }

Property Value

CookiePartitionKey

CookiePartitionKeyOpaque

True if partitioned cookies are enabled, but the partition key is not serializable to string.

[JsonPropertyName("cookiePartitionKeyOpaque")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public bool? CookiePartitionKeyOpaque { get; set; }

Property Value

bool?

ExemptedCookies

A list of cookies which should have been blocked by 3PCD but are exempted and stored from the response with the corresponding reason.

[JsonPropertyName("exemptedCookies")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public ExemptedSetCookieWithReason[]? ExemptedCookies { get; set; }

Property Value

ExemptedSetCookieWithReason[]

Headers

Raw response headers as they were received over the wire. Duplicate headers in the response are represented as a single key with their values concatentated using \n as the separator. See also headersText that contains verbatim text for HTTP/1.*.

[JsonPropertyName("headers")]
public Headers Headers { get; set; }

Property Value

Headers

HeadersText

Raw response header text as it was received over the wire. The raw text may not always be available, such as in the case of HTTP/2 or QUIC.

[JsonPropertyName("headersText")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? HeadersText { get; set; }

Property Value

string

RequestId

Request identifier. Used to match this information to another responseReceived event.

[JsonPropertyName("requestId")]
public string RequestId { get; set; }

Property Value

string

ResourceIPAddressSpace

The IP address space of the resource. The address space can only be determined once the transport established the connection, so we can't send it in requestWillBeSentExtraInfo.

[JsonPropertyName("resourceIPAddressSpace")]
public IPAddressSpace ResourceIPAddressSpace { get; set; }

Property Value

IPAddressSpace

StatusCode

The status code of the response. This is useful in cases the request failed and no responseReceived event is triggered, which is the case for, e.g., CORS errors. This is also the correct status code for cached requests, where the status in responseReceived is a 200 and this will be 304.

[JsonPropertyName("statusCode")]
public long StatusCode { get; set; }

Property Value

long