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
originalResponseData
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
AuthChallenges
Gets the list of authorization challenges in the response, if any.
[JsonIgnore]
public IList<AuthChallenge>? AuthChallenges { get; }
Property Value
BodySize
Gets the size, in bytes, of the body in the response.
[JsonPropertyName("bodySize")]
[JsonRequired]
[JsonInclude]
public ulong? BodySize { get; }
Property Value
BytesReceived
Gets the count of the bytes received in the response.
[JsonPropertyName("bytesReceived")]
[JsonRequired]
[JsonInclude]
public ulong BytesReceived { get; }
Property Value
Content
Gets the content of the response.
[JsonPropertyName("content")]
[JsonRequired]
[JsonInclude]
public ResponseContent Content { get; }
Property Value
EqualityContract
protected virtual Type EqualityContract { get; }
Property Value
FromCache
Gets a value indicating whether the response was retrieved from the cache.
[JsonPropertyName("fromCache")]
[JsonRequired]
[JsonInclude]
public bool FromCache { get; }
Property Value
Headers
Gets the headers of the response.
[JsonIgnore]
public IList<ReadOnlyHeader> Headers { get; }
Property Value
HeadersSize
Gets the size, in bytes, of the headers in the response.
[JsonPropertyName("headersSize")]
[JsonRequired]
[JsonInclude]
public ulong? HeadersSize { get; }
Property Value
MimeType
Gets the MIME type of the response.
[JsonPropertyName("mimeType")]
[JsonRequired]
[JsonInclude]
public string MimeType { get; }
Property Value
Protocol
Gets the protocol of the response.
[JsonPropertyName("protocol")]
[JsonRequired]
[JsonInclude]
public string Protocol { get; }
Property Value
Status
Gets the status code of the response.
[JsonPropertyName("status")]
[JsonRequired]
[JsonInclude]
public ulong Status { get; }
Property Value
StatusText
Gets the status text of the response.
[JsonPropertyName("statusText")]
[JsonRequired]
[JsonInclude]
public string StatusText { get; }
Property Value
Url
Gets the URL of the response.
[JsonPropertyName("url")]
[JsonRequired]
[JsonInclude]
public string Url { get; }
Property Value
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(ResponseData?)
public virtual bool Equals(ResponseData? other)
Parameters
otherResponseData
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(ResponseData?, ResponseData?)
public static bool operator ==(ResponseData? left, ResponseData? right)
Parameters
leftResponseDatarightResponseData
Returns
operator !=(ResponseData?, ResponseData?)
public static bool operator !=(ResponseData? left, ResponseData? right)
Parameters
leftResponseDatarightResponseData