FetchEventInit Class
The initialization dictionary of a FetchEvent (https://w3c.github.io/ServiceWorker/#dictdef-fetcheventinit).
public sealed class FetchEventInit : ExtendableEventInit- Inheritance
ExtendableEventInitFetchEventInit
Constructors
| Name | Description |
|---|---|
| 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
| Name | Description |
|---|---|
| ClientId | Gets the identifier of the client of the request. |
| Handled | Gets the promise fulfilled when the event was handled, or null. |
| PreloadResponse | Gets the promise of the response of the navigation preload, or null. |
| ReplacesClientId | Gets the identifier of the client replaced by the navigation. |
| Request | Gets the request: a Request object of the script engine (the Fetch API is implemented in JavaScript). |
| ResultingClientId | Gets the identifier of the client created by the navigation. |
ClientId
ServiceWorkerTypes.csGets the identifier of the client of the request.
public string ClientId { get; init; }Handled
ServiceWorkerTypes.csGets the promise fulfilled when the event was handled, or null.
public Task? Handled { get; init; }PreloadResponse
ServiceWorkerTypes.csGets the promise of the response of the navigation preload, or null.
Property value
See also
ReplacesClientId
ServiceWorkerTypes.csGets the identifier of the client replaced by the navigation.
public string ReplacesClientId { get; init; }Property value
See also
Request
ServiceWorkerTypes.csGets the request: a Request object of the script engine (the Fetch API is implemented in JavaScript).
public required object Request { get; init; }ResultingClientId
ServiceWorkerTypes.csGets the identifier of the client created by the navigation.
public string ResultingClientId { get; init; }