StoredServiceWorkerScript Class
A response of the script resource map of a StoredServiceWorker.
public sealed class StoredServiceWorkerScriptConstructors
| Name | Description |
|---|---|
| StoredServiceWorkerScript() |
StoredServiceWorkerScript()
ServiceWorkerBackend.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 StoredServiceWorkerScript()No documentation is available.
Properties
| Name | Description |
|---|---|
| Body | Gets the body. |
| Headers | Gets the headers. |
| ResponseUrl | Gets the serialized URL of the response (after the redirects), or null when it is StoredServiceWorkerScript.Url. |
| Status | Gets the status. |
| StatusText | Gets the status message. |
| Url | Gets the serialized URL of the request of the script (the key of the map). |
Headers
ServiceWorkerBackend.csGets the headers.
public IReadOnlyList<KeyValuePair<string, string>> Headers { get; init; }Property value
ResponseUrl
ServiceWorkerBackend.csGets the serialized URL of the response (after the redirects), or null when it is StoredServiceWorkerScript.Url.
public string? ResponseUrl { get; init; }