RequestDestination Enum
The destination of a DocumentRequest (https://fetch.spec.whatwg.org/#concept-request-destination).
public enum RequestDestinationFields
| Name | Value | Description |
|---|---|---|
Document | 0 | The 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. |
Script | 1 | The classic script of a script element. |
Style | 2 | A style sheet: the one of a <link rel="stylesheet"> or of an @import rule (https://drafts.csswg.org/css-cascade-5/#fetch-an-import). |
Image | 3 | An 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. |
Font | 4 | A 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. |
Json | 5 | The JSON module of an import with { type: "json" } (https://html.spec.whatwg.org/multipage/webappapis.html#fetch-a-single-module-script). |
Text | 6 | The text module of an import with { type: "text" } (https://html.spec.whatwg.org/multipage/webappapis.html#fetch-destination-from-module-type). |
Empty | 7 | The empty destination: a request of fetch() or of XMLHttpRequest. The resource should be returned as bytes, with its status and its headers. |
Ping | 8 | A 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. |
Iframe | 9 | The document of the navigation of an iframe element (e.g. its src). |
Frame | 10 | The document of the navigation of a frame element. |
Embed | 11 | The document of the navigation of an embed element. |
Object | 12 | The document of the navigation of an object element. |
Worker | 13 | The script of a dedicated worker. |
SharedWorker | 14 | The script of a shared worker. |
ServiceWorker | 15 | The script of a service worker (https://w3c.github.io/ServiceWorker/#update-algorithm), and the scripts it imports. |
Report | 16 | A 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. |
Audio | 17 | The 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. |
Video | 18 | The 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. |
Track | 19 | The 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. |
PaintWorklet | 20 | A 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. |
SpeculationRules | 21 | A speculation rule set of the Speculation-Rules header of a document (https://html.spec.whatwg.org/multipage/speculative-loading.html#the-speculation-rules-header). |
AudioWorklet | 22 | A module script of an audio worklet (audioContext.audioWorklet.addModule(), https://webaudio.github.io/web-audio-api/#AudioWorklet), and the modules it imports. |