StoredServiceWorkerScript Class

A response of the script resource map of a StoredServiceWorker.

public sealed class StoredServiceWorkerScript

Constructors

NameDescription
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

NameDescription
BodyGets the body.
HeadersGets the headers.
ResponseUrlGets the serialized URL of the response (after the redirects), or null when it is StoredServiceWorkerScript.Url.
StatusGets the status.
StatusTextGets the status message.
UrlGets the serialized URL of the request of the script (the key of the map).

Gets the body.

public ReadOnlyMemory<byte> Body { get; init; }

Property value

ReadOnlyMemory<byte>

Gets the headers.

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

Gets the serialized URL of the response (after the redirects), or null when it is StoredServiceWorkerScript.Url.

public string? ResponseUrl { get; init; }

Property value

string?

Gets the status.

public int Status { get; init; }

Property value

int

Gets the status message.

public string StatusText { get; init; }

Property value

string

Gets the serialized URL of the request of the script (the key of the map).

public required string Url { get; init; }

Property value

string