Table of Contents

Class Response

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

HTTP response data.

public sealed record Response : IEquatable<Response>
Inheritance
Response
Implements
Inherited Members

Constructors

Response(string, long, string, IReadOnlyDictionary<string, string>, string, string, bool, double, double, SecurityState)

HTTP response data.

public Response(string Url, long Status, string StatusText, IReadOnlyDictionary<string, string> Headers, string MimeType, string Charset, bool ConnectionReused, double ConnectionId, double EncodedDataLength, SecurityState SecurityState)

Parameters

Url string

Response URL. This URL can be different from CachedResource.url in case of redirect.

Status long

HTTP response status code.

StatusText string

HTTP response status text.

Headers IReadOnlyDictionary<string, string>

HTTP response headers.

MimeType string

Resource mimeType as determined by the browser.

Charset string

Resource charset as determined by the browser (if applicable).

ConnectionReused bool

Specifies whether physical connection was actually reused for this request.

ConnectionId double

Physical connection id that was actually used for this request.

EncodedDataLength double

Total number of bytes received for this request so far.

SecurityState SecurityState

Security state of the request resource.

Properties

AlternateProtocolUsage

The reason why Chrome uses a specific transport protocol for HTTP semantics.

public AlternateProtocolUsage? AlternateProtocolUsage { get; init; }

Property Value

AlternateProtocolUsage?

CacheStorageCacheName

Cache Storage Cache Name.

public string? CacheStorageCacheName { get; init; }

Property Value

string

Charset

Resource charset as determined by the browser (if applicable).

public string Charset { get; init; }

Property Value

string

ConnectionId

Physical connection id that was actually used for this request.

public double ConnectionId { get; init; }

Property Value

double

ConnectionReused

Specifies whether physical connection was actually reused for this request.

public bool ConnectionReused { get; init; }

Property Value

bool

EncodedDataLength

Total number of bytes received for this request so far.

public double EncodedDataLength { get; init; }

Property Value

double

FromDiskCache

Specifies that the request was served from the disk cache.

public bool? FromDiskCache { get; init; }

Property Value

bool?

FromEarlyHints

Specifies that the request was served from the prefetch cache.

public bool? FromEarlyHints { get; init; }

Property Value

bool?

FromPrefetchCache

Specifies that the request was served from the prefetch cache.

public bool? FromPrefetchCache { get; init; }

Property Value

bool?

FromServiceWorker

Specifies that the request was served from the ServiceWorker.

public bool? FromServiceWorker { get; init; }

Property Value

bool?

Headers

HTTP response headers.

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

Property Value

IReadOnlyDictionary<string, string>

HeadersText

HTTP response headers text. This has been replaced by the headers in Network.responseReceivedExtraInfo.

[Obsolete]
public string? HeadersText { get; init; }

Property Value

string

MimeType

Resource mimeType as determined by the browser.

public string MimeType { get; init; }

Property Value

string

Protocol

Protocol used to fetch this request.

public string? Protocol { get; init; }

Property Value

string

RemoteIPAddress

Remote IP address.

public string? RemoteIPAddress { get; init; }

Property Value

string

RemotePort

Remote port.

public long? RemotePort { get; init; }

Property Value

long?

RequestHeaders

Refined HTTP request headers that were actually transmitted over the network.

public IReadOnlyDictionary<string, string>? RequestHeaders { get; init; }

Property Value

IReadOnlyDictionary<string, string>

RequestHeadersText

HTTP request headers text. This has been replaced by the headers in Network.requestWillBeSentExtraInfo.

[Obsolete]
public string? RequestHeadersText { get; init; }

Property Value

string

ResponseTime

The time at which the returned response was generated.

public TimeSinceEpoch? ResponseTime { get; init; }

Property Value

TimeSinceEpoch

SecurityDetails

Security details for the request.

public SecurityDetails? SecurityDetails { get; init; }

Property Value

SecurityDetails

SecurityState

Security state of the request resource.

public SecurityState SecurityState { get; init; }

Property Value

SecurityState

ServiceWorkerResponseSource

Response source of response from ServiceWorker.

public ServiceWorkerResponseSource? ServiceWorkerResponseSource { get; init; }

Property Value

ServiceWorkerResponseSource?

ServiceWorkerRouterInfo

Information about how ServiceWorker Static Router API was used. If this field is set with matchedSourceType field, a matching rule is found. If this field is set without matchedSource, no matching rule is found. Otherwise, the API is not used.

public ServiceWorkerRouterInfo? ServiceWorkerRouterInfo { get; init; }

Property Value

ServiceWorkerRouterInfo

Status

HTTP response status code.

public long Status { get; init; }

Property Value

long

StatusText

HTTP response status text.

public string StatusText { get; init; }

Property Value

string

Timing

Timing information for the given request.

public ResourceTiming? Timing { get; init; }

Property Value

ResourceTiming

Url

Response URL. This URL can be different from CachedResource.url in case of redirect.

public string Url { get; init; }

Property Value

string