CachedRequest Class

A request of a cache entry (https://fetch.spec.whatwg.org/#concept-request).

public sealed class CachedRequest

Constructors

NameDescription
CachedRequest()

CachedRequest()

CacheStorageBackend.cs
  • Obsolete: Constructors of types with required members are not supported in this version of your compiler.
[Obsolete("Constructors of types with required members are not supported in this version of your compiler.", true)]
public CachedRequest()

No documentation is available.

Properties

NameDescription
CacheGets the cache mode.
CredentialsGets the credentials mode (omit, same-origin, include).
HeadersGets the headers.
IntegrityGets the integrity metadata.
IsHistoryNavigationGets a value indicating whether the request is a history navigation (https://fetch.spec.whatwg.org/#concept-request-history-navigation-flag).
IsReloadNavigationGets a value indicating whether the request is a reload navigation (https://fetch.spec.whatwg.org/#concept-request-reload-navigation-flag).
MethodGets the method.
ModeGets the mode (cors, no-cors, same-origin, navigate).
RedirectGets the redirect mode (follow, error, manual).
ReferrerGets the referrer: client, no-referrer or a URL.
ReferrerPolicyGets the referrer policy.
UrlGets the URL (with its fragment).
UrlWithoutQueryGets the URL without its query and its fragment, used to look up the entries.

Gets the cache mode.

public string Cache { get; init; }

Property value

string

Gets the credentials mode (omit, same-origin, include).

public string Credentials { get; init; }

Property value

string

Gets the headers.

public IReadOnlyList<KeyValuePair<string, string>> Headers { get; init; }

Gets the integrity metadata.

public string Integrity { get; init; }

Property value

string

IsHistoryNavigation

CacheStorageBackend.cs

Gets a value indicating whether the request is a history navigation (https://fetch.spec.whatwg.org/#concept-request-history-navigation-flag).

public bool IsHistoryNavigation { get; init; }

Property value

bool

IsReloadNavigation

CacheStorageBackend.cs

Gets a value indicating whether the request is a reload navigation (https://fetch.spec.whatwg.org/#concept-request-reload-navigation-flag).

public bool IsReloadNavigation { get; init; }

Property value

bool

Gets the method.

public string Method { get; init; }

Property value

string

Gets the mode (cors, no-cors, same-origin, navigate).

public string Mode { get; init; }

Property value

string

Gets the redirect mode (follow, error, manual).

public string Redirect { get; init; }

Property value

string

Gets the referrer: client, no-referrer or a URL.

public string Referrer { get; init; }

Property value

string

Gets the referrer policy.

public string ReferrerPolicy { get; init; }

Property value

string

Gets the URL (with its fragment).

public required string Url { get; init; }

Property value

string

UrlWithoutQuery

CacheStorageBackend.cs

Gets the URL without its query and its fragment, used to look up the entries.

public string UrlWithoutQuery { get; }

Property value

string

Methods

NameDescription
GetUrlWithoutQuery(string)Returns the URL without its query and its fragment.

GetUrlWithoutQuery(string)

CacheStorageBackend.cs

Returns the URL without its query and its fragment.

public static string GetUrlWithoutQuery(string url)

Parameters

url string

Returns

string