Table of Contents

Class RequestData

Namespace
WebDriverBiDi.Network
Assembly
WebDriverBiDi.dll

A network request.

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

Constructors

RequestData(RequestData)

protected RequestData(RequestData original)

Parameters

original RequestData

Properties

AdditionalData

Gets the read-only dictionary containing extension properties received in this request, 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

BodySize

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

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

Property Value

ulong?

Cookies

Gets the cookies of the request.

[JsonIgnore]
public IList<Cookie> Cookies { get; }

Property Value

IList<Cookie>

Destination

Gets the destination of the request.

[JsonPropertyName("destination")]
[JsonRequired]
[JsonInclude]
public string Destination { get; }

Property Value

string

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Headers

Gets the headers of the request.

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

Property Value

IList<ReadOnlyHeader>

HeadersSize

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

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

Property Value

ulong

InitiatorType

Gets the initiator type of the request.

[JsonPropertyName("initiatorType")]
[JsonRequired]
[JsonInclude]
public string? InitiatorType { get; }

Property Value

string

Method

Gets the method of the request.

[JsonPropertyName("method")]
[JsonRequired]
[JsonInclude]
public string Method { get; }

Property Value

string

RequestId

Gets the ID of the request.

[JsonPropertyName("request")]
[JsonRequired]
[JsonInclude]
public string RequestId { get; }

Property Value

string

Timings

Gets the fetch timing info of the request.

[JsonPropertyName("timings")]
[JsonRequired]
[JsonInclude]
public FetchTimingInfo Timings { get; }

Property Value

FetchTimingInfo

Url

Gets the URL of the request.

[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(RequestData?)

public virtual bool Equals(RequestData? other)

Parameters

other RequestData

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 ==(RequestData?, RequestData?)

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

Parameters

left RequestData
right RequestData

Returns

bool

operator !=(RequestData?, RequestData?)

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

Parameters

left RequestData
right RequestData

Returns

bool