Class Request
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
UrlstringRequest URL (without fragment).
MethodstringHTTP request method.
HeadersIReadOnlyDictionary<string, string>HTTP request headers.
InitialPriorityResourcePriorityPriority of the resource request at the time request is sent.
ReferrerPolicystringThe 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
InitialPriority
Priority of the resource request at the time request is sent.
public ResourcePriority InitialPriority { get; init; }
Property Value
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
MixedContentType
The mixed content type of the request.
public MixedContentType? MixedContentType { get; init; }
Property Value
PostData
HTTP POST request data. Use postDataEntries instead.
[Obsolete]
public string? PostData { get; init; }
Property Value
PostDataEntries
Request body elements (post data broken into individual entries).
public ImmutableArray<PostDataEntry>? PostDataEntries { get; init; }
Property Value
ReferrerPolicy
The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/
public string ReferrerPolicy { get; init; }
Property Value
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
Url
Request URL (without fragment).
public string Url { get; init; }
Property Value
UrlFragment
Fragment of the requested URL starting with hash, if present.
public string? UrlFragment { get; init; }