RequestDestination Enum

The destination of a DocumentRequest (https://fetch.spec.whatwg.org/#concept-request-destination).

public enum RequestDestination

Fields

NameValueDescription
Document0The document of the navigation of a top-level browsing context (e.g. BrowsingContext.Navigate, window.open()). The navigations of the nested browsing contexts are RequestDestination.Iframe, RequestDestination.Frame, RequestDestination.Embed and RequestDestination.Object.
Script1The classic script of a script element.
Style2A style sheet: the one of a <link rel="stylesheet"> or of an @import rule (https://drafts.csswg.org/css-cascade-5/#fetch-an-import).
Image3An image: the one of an img element (https://html.spec.whatwg.org/multipage/images.html#update-the-image-data), of an SVG image element or the poster of a video element. The resource should be returned as bytes.
Font4A font: the font file of a font face (https://drafts.csswg.org/css-font-loading/#font-face-load) or the resource of a <link rel="preload" as="font">. The resource should be returned as bytes.
Json5The JSON module of an import with { type: "json" } (https://html.spec.whatwg.org/multipage/webappapis.html#fetch-a-single-module-script).
Text6The text module of an import with { type: "text" } (https://html.spec.whatwg.org/multipage/webappapis.html#fetch-destination-from-module-type).
Empty7The empty destination: a request of fetch() or of XMLHttpRequest. The resource should be returned as bytes, with its status and its headers.
Ping8A hyperlink auditing ping (https://html.spec.whatwg.org/multipage/links.html#hyperlink-auditing): a POST request whose body is PING, sent to the URLs of the ping attribute of a followed hyperlink. The response is ignored.
Iframe9The document of the navigation of an iframe element (e.g. its src).
Frame10The document of the navigation of a frame element.
Embed11The document of the navigation of an embed element.
Object12The document of the navigation of an object element.
Worker13The script of a dedicated worker.
SharedWorker14The script of a shared worker.
ServiceWorker15The script of a service worker (https://w3c.github.io/ServiceWorker/#update-algorithm), and the scripts it imports.
Report16A violation report of a content security policy (https://w3c.github.io/webappsec-csp/#report-violation): a POST request whose body is the JSON report (application/csp-report), sent to the URLs of the report-uri directive. The response is ignored.
Audio17The media resource of an audio element (https://html.spec.whatwg.org/multipage/media.html#concept-media-load-resource), fetched when a BrowsingContextOptions.MediaBackend is set. The resource should be returned as bytes.
Video18The media resource of a video element (https://html.spec.whatwg.org/multipage/media.html#concept-media-load-resource), fetched when a BrowsingContextOptions.MediaBackend is set. The resource should be returned as bytes.
Track19The resource of a track element (https://html.spec.whatwg.org/multipage/media.html#start-the-track-processing-model) or of a <link rel=preload as=track> element: a WebVTT file. The resource should be returned as bytes.
PaintWorklet20A module script of a paint worklet (CSS.paintWorklet.addModule(), https://html.spec.whatwg.org/multipage/worklets.html#fetch-a-worklet-script-graph), and the modules it imports.
SpeculationRules21A speculation rule set of the Speculation-Rules header of a document (https://html.spec.whatwg.org/multipage/speculative-loading.html#the-speculation-rules-header).
AudioWorklet22A module script of an audio worklet (audioContext.audioWorklet.addModule(), https://webaudio.github.io/web-audio-api/#AudioWorklet), and the modules it imports.
Xslt23An XSLT stylesheet: the one of an <?xml-stylesheet type="text/xsl"?> processing instruction of an XML document, or of an xsl:include or xsl:import element (see XsltProcessor).
WebIdentity24A request of Federated Credential Management to an identity provider (https://w3c-fedid.github.io/FedCM/#idp-api): its well-known file, its config file, its accounts, client metadata, identity assertion and disconnect endpoints, and the pictures of its accounts. The resource should be returned as bytes, with its status and its headers.