StoredServiceWorkerRouterCondition Class

The condition of a StoredServiceWorkerRouterRule (https://w3c.github.io/ServiceWorker/#dictdef-routercondition). A null member is not present; StoredServiceWorkerRouterCondition.Or and StoredServiceWorkerRouterCondition.Not are not combined with the other members.

public sealed class StoredServiceWorkerRouterCondition

Constructors

NameDescription
StoredServiceWorkerRouterCondition()

StoredServiceWorkerRouterCondition()

public StoredServiceWorkerRouterCondition()

No documentation is available.

Properties

NameDescription
NotGets the condition that must not match, or null.
OrGets the conditions of which one must match, or null.
RequestDestinationGets the destination (e.g. script, or the empty string), or null.
RequestMethodGets the normalized method (e.g. POST), or null.
RequestModeGets the mode (e.g. no-cors), or null.
RunningStatusGets the running status: running or not-running, or null.
UrlPatternGets the URL pattern, or null.

Gets the condition that must not match, or null.

public StoredServiceWorkerRouterCondition? Not { get; init; }

Gets the conditions of which one must match, or null.

RequestDestination

ServiceWorkerBackend.cs

Gets the destination (e.g. script, or the empty string), or null.

public string? RequestDestination { get; init; }

Property value

string?

Gets the normalized method (e.g. POST), or null.

public string? RequestMethod { get; init; }

Property value

string?

Gets the mode (e.g. no-cors), or null.

public string? RequestMode { get; init; }

Property value

string?

Gets the running status: running or not-running, or null.

public string? RunningStatus { get; init; }

Property value

string?

Gets the URL pattern, or null.

public StoredServiceWorkerUrlPattern? UrlPattern { get; init; }