Table of Contents

Class ResponseData

Namespace
WebDriverBiDi.Network
Assembly
WebDriverBiDi.dll

Data of a network response.

public record ResponseData : IEquatable<ResponseData>
Inheritance
ResponseData
Implements
Inherited Members

Constructors

ResponseData(ResponseData)

protected ResponseData(ResponseData original)

Parameters

original ResponseData

Properties

AdditionalData

Gets the read-only dictionary containing extension properties received in this response, such as vendor-prefixed fields (for example, Chromium's goog: properties) that are not part of the WebDriver BiDi specification.

[JsonIgnore]
public ReceivedDataDictionary AdditionalData { get; }

Property Value

ReceivedDataDictionary

AuthChallenges

Gets the list of authorization challenges in the response, if any.

[JsonIgnore]
public IList<AuthChallenge>? AuthChallenges { get; }

Property Value

IList<AuthChallenge>

BodySize

Gets the size, in bytes, of the body in the response.

[JsonPropertyName("bodySize")]
[JsonRequired]
[JsonInclude]
public ulong? BodySize { get; }

Property Value

ulong?

BytesReceived

Gets the count of the bytes received in the response.

[JsonPropertyName("bytesReceived")]
[JsonRequired]
[JsonInclude]
public ulong BytesReceived { get; }

Property Value

ulong

Content

Gets the content of the response.

[JsonPropertyName("content")]
[JsonRequired]
[JsonInclude]
public ResponseContent Content { get; }

Property Value

ResponseContent

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

FromCache

Gets a value indicating whether the response was retrieved from the cache.

[JsonPropertyName("fromCache")]
[JsonRequired]
[JsonInclude]
public bool FromCache { get; }

Property Value

bool

Headers

Gets the headers of the response.

[JsonIgnore]
public IList<ReadOnlyHeader> Headers { get; }

Property Value

IList<ReadOnlyHeader>

HeadersSize

Gets the size, in bytes, of the headers in the response.

[JsonPropertyName("headersSize")]
[JsonRequired]
[JsonInclude]
public ulong? HeadersSize { get; }

Property Value

ulong?

MimeType

Gets the MIME type of the response.

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

Property Value

string

Protocol

Gets the protocol of the response.

[JsonPropertyName("protocol")]
[JsonRequired]
[JsonInclude]
public string Protocol { get; }

Property Value

string

Status

Gets the status code of the response.

[JsonPropertyName("status")]
[JsonRequired]
[JsonInclude]
public ulong Status { get; }

Property Value

ulong

StatusText

Gets the status text of the response.

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

Property Value

string

Url

Gets the URL of the response.

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

Property Value

string

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(ResponseData?)

public virtual bool Equals(ResponseData? other)

Parameters

other ResponseData

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(ResponseData?, ResponseData?)

public static bool operator ==(ResponseData? left, ResponseData? right)

Parameters

left ResponseData
right ResponseData

Returns

bool

operator !=(ResponseData?, ResponseData?)

public static bool operator !=(ResponseData? left, ResponseData? right)

Parameters

left ResponseData
right ResponseData

Returns

bool