FetchEventInit Class

The initialization dictionary of a FetchEvent (https://w3c.github.io/ServiceWorker/#dictdef-fetcheventinit).

public sealed class FetchEventInit : ExtendableEventInit
Inheritance
ExtendableEventInit FetchEventInit

Constructors

NameDescription
FetchEventInit()

FetchEventInit()

ServiceWorkerTypes.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 FetchEventInit()

No documentation is available.

Properties

NameDescription
ClientIdGets the identifier of the client of the request.
HandledGets the promise fulfilled when the event was handled, or null.
PreloadResponseGets the promise of the response of the navigation preload, or null.
ReplacesClientIdGets the identifier of the client replaced by the navigation.
RequestGets the request: a Request object of the script engine (the Fetch API is implemented in JavaScript).
ResultingClientIdGets the identifier of the client created by the navigation.

Gets the identifier of the client of the request.

public string ClientId { get; init; }

Gets the promise fulfilled when the event was handled, or null.

public Task? Handled { get; init; }

PreloadResponse

ServiceWorkerTypes.cs

Gets the promise of the response of the navigation preload, or null.

public Task<object?>? PreloadResponse { get; init; }

ReplacesClientId

ServiceWorkerTypes.cs

Gets the identifier of the client replaced by the navigation.

public string ReplacesClientId { get; init; }

Gets the request: a Request object of the script engine (the Fetch API is implemented in JavaScript).

public required object Request { get; init; }

ResultingClientId

ServiceWorkerTypes.cs

Gets the identifier of the client created by the navigation.

public string ResultingClientId { get; init; }