Table of Contents

Class Response

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

HTTP response data.

public sealed class Response
Inheritance
Response
Inherited Members

Properties

AlternateProtocolUsage

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

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

Property Value

AlternateProtocolUsage?

CacheStorageCacheName

Cache Storage Cache Name.

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

Property Value

string

Charset

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

[JsonPropertyName("charset")]
public string Charset { get; set; }

Property Value

string

ConnectionId

Physical connection id that was actually used for this request.

[JsonPropertyName("connectionId")]
public double ConnectionId { get; set; }

Property Value

double

ConnectionReused

Specifies whether physical connection was actually reused for this request.

[JsonPropertyName("connectionReused")]
public bool ConnectionReused { get; set; }

Property Value

bool

EncodedDataLength

Total number of bytes received for this request so far.

[JsonPropertyName("encodedDataLength")]
public double EncodedDataLength { get; set; }

Property Value

double

FromDiskCache

Specifies that the request was served from the disk cache.

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

Property Value

bool?

FromEarlyHints

Specifies that the request was served from the prefetch cache.

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

Property Value

bool?

FromPrefetchCache

Specifies that the request was served from the prefetch cache.

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

Property Value

bool?

FromServiceWorker

Specifies that the request was served from the ServiceWorker.

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

Property Value

bool?

Headers

HTTP response headers.

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

Property Value

Headers

HeadersText

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

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

Property Value

string

MimeType

Resource mimeType as determined by the browser.

[JsonPropertyName("mimeType")]
public string MimeType { get; set; }

Property Value

string

Protocol

Protocol used to fetch this request.

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

Property Value

string

RemoteIPAddress

Remote IP address.

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

Property Value

string

RemotePort

Remote port.

[JsonPropertyName("remotePort")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public long? RemotePort { get; set; }

Property Value

long?

RequestHeaders

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

[JsonPropertyName("requestHeaders")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public Headers? RequestHeaders { get; set; }

Property Value

Headers

RequestHeadersText

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

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

Property Value

string

ResponseTime

The time at which the returned response was generated.

[JsonPropertyName("responseTime")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public double? ResponseTime { get; set; }

Property Value

double?

SecurityDetails

Security details for the request.

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

Property Value

SecurityDetails

SecurityState

Security state of the request resource.

[JsonPropertyName("securityState")]
public SecurityState SecurityState { get; set; }

Property Value

SecurityState

ServiceWorkerResponseSource

Response source of response from ServiceWorker.

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

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.

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

Property Value

ServiceWorkerRouterInfo

Status

HTTP response status code.

[JsonPropertyName("status")]
public long Status { get; set; }

Property Value

long

StatusText

HTTP response status text.

[JsonPropertyName("statusText")]
public string StatusText { get; set; }

Property Value

string

Timing

Timing information for the given request.

[JsonPropertyName("timing")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public ResourceTiming? Timing { get; set; }

Property Value

ResourceTiming

Url

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

[JsonPropertyName("url")]
public string Url { get; set; }

Property Value

string