Table of Contents

Class Request

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

HTTP request data.

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

Constructors

Request(string, string, IReadOnlyDictionary<string, string>, ResourcePriority, string)

HTTP request data.

public Request(string Url, string Method, IReadOnlyDictionary<string, string> Headers, ResourcePriority InitialPriority, string ReferrerPolicy)

Parameters

Url string

Request URL (without fragment).

Method string

HTTP request method.

Headers IReadOnlyDictionary<string, string>

HTTP request headers.

InitialPriority ResourcePriority

Priority of the resource request at the time request is sent.

ReferrerPolicy string

The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/

Properties

HasPostData

True when the request has POST data. Note that postData might still be omitted when this flag is true when the data is too long.

public bool? HasPostData { get; init; }

Property Value

bool?

Headers

HTTP request headers.

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

Property Value

IReadOnlyDictionary<string, string>

InitialPriority

Priority of the resource request at the time request is sent.

public ResourcePriority InitialPriority { get; init; }

Property Value

ResourcePriority

IsAdRelated

True when the resource request is ad-related.

public bool? IsAdRelated { get; init; }

Property Value

bool?

IsLinkPreload

Whether is loaded via link preload.

public bool? IsLinkPreload { get; init; }

Property Value

bool?

IsSameSite

True if this resource request is considered to be the 'same site' as the request corresponding to the main frame.

public bool? IsSameSite { get; init; }

Property Value

bool?

Method

HTTP request method.

public string Method { get; init; }

Property Value

string

MixedContentType

The mixed content type of the request.

public MixedContentType? MixedContentType { get; init; }

Property Value

MixedContentType?

PostData

HTTP POST request data. Use postDataEntries instead.

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

Property Value

string

PostDataEntries

Request body elements (post data broken into individual entries).

public ImmutableArray<PostDataEntry>? PostDataEntries { get; init; }

Property Value

ImmutableArray<PostDataEntry>?

ReferrerPolicy

The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/

public string ReferrerPolicy { get; init; }

Property Value

string

TrustTokenParams

Set for requests when the TrustToken API is used. Contains the parameters passed by the developer (e.g. via "fetch") as understood by the backend.

public TrustTokenParams? TrustTokenParams { get; init; }

Property Value

TrustTokenParams

Url

Request URL (without fragment).

public string Url { get; init; }

Property Value

string

UrlFragment

Fragment of the requested URL starting with hash, if present.

public string? UrlFragment { get; init; }

Property Value

string