diff --git a/files/en-us/web/api/fetch_api/index.md b/files/en-us/web/api/fetch_api/index.md index 481da95c6379cc2..f06d3d7ec063186 100644 --- a/files/en-us/web/api/fetch_api/index.md +++ b/files/en-us/web/api/fetch_api/index.md @@ -25,7 +25,7 @@ Find out more about using the Fetch API features in [Using Fetch](/en-US/docs/We ## Fetch Interfaces -- {{domxref("Window/fetch", "fetch()")}} +- {{domxref("Window.fetch()")}} and {{domxref("WorkerGlobalScope.fetch()")}} - : The `fetch()` method used to fetch a resource. - {{DOMxRef("Headers")}} - : Represents response/request headers, allowing you to query them and take different actions depending on the results. diff --git a/files/en-us/web/api/request/arraybuffer/index.md b/files/en-us/web/api/request/arraybuffer/index.md index e549f20968deea8..dbd16b740fed497 100644 --- a/files/en-us/web/api/request/arraybuffer/index.md +++ b/files/en-us/web/api/request/arraybuffer/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.Request.arrayBuffer --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}}{{AvailableInWorkers}} The **`arrayBuffer()`** method of the {{domxref("Request")}} interface reads the request body and returns it as a promise that resolves with an {{jsxref("ArrayBuffer")}}. diff --git a/files/en-us/web/api/request/blob/index.md b/files/en-us/web/api/request/blob/index.md index 3df18ba05b4e80c..fcd63420cf416af 100644 --- a/files/en-us/web/api/request/blob/index.md +++ b/files/en-us/web/api/request/blob/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.Request.blob --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}}{{AvailableInWorkers}} The **`blob()`** method of the {{domxref("Request")}} interface reads the request body and returns it as a promise that resolves with a {{domxref("Blob")}}. diff --git a/files/en-us/web/api/request/body/index.md b/files/en-us/web/api/request/body/index.md index 770c0aa3390fda8..1fd14ab75ceb73a 100644 --- a/files/en-us/web/api/request/body/index.md +++ b/files/en-us/web/api/request/body/index.md @@ -6,9 +6,9 @@ page-type: web-api-instance-property browser-compat: api.Request.body --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}}{{AvailableInWorkers}} -The read-only **`body`** property of the {{domxref("Request")}} +The **`body`** read-only property of the {{domxref("Request")}} interface contains a {{domxref("ReadableStream")}} with the body contents that have been added to the request. Note that a request using the `GET` or `HEAD` method cannot have a body diff --git a/files/en-us/web/api/request/bodyused/index.md b/files/en-us/web/api/request/bodyused/index.md index 59ff41d7df3e78a..395f00ae8422b8f 100644 --- a/files/en-us/web/api/request/bodyused/index.md +++ b/files/en-us/web/api/request/bodyused/index.md @@ -6,9 +6,9 @@ page-type: web-api-instance-property browser-compat: api.Request.bodyUsed --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}}{{AvailableInWorkers}} -The read-only **`bodyUsed`** property of the +The **`bodyUsed`** read-only property of the {{domxref("Request")}} interface is a boolean value that indicates whether the request body has been read yet. diff --git a/files/en-us/web/api/request/bytes/index.md b/files/en-us/web/api/request/bytes/index.md index 28727f0bddb0f1d..0ab9f9ebe8f4eaf 100644 --- a/files/en-us/web/api/request/bytes/index.md +++ b/files/en-us/web/api/request/bytes/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.Request.bytes --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}}{{AvailableInWorkers}} The **`bytes()`** method of the {{domxref("Request")}} interface reads the request body and returns it as a promise that resolves with an {{jsxref("Uint8Array")}}. diff --git a/files/en-us/web/api/request/cache/index.md b/files/en-us/web/api/request/cache/index.md index 864b8b32e9253e1..6bd52ae418d9a47 100644 --- a/files/en-us/web/api/request/cache/index.md +++ b/files/en-us/web/api/request/cache/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-property browser-compat: api.Request.cache --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}}{{AvailableInWorkers}} The **`cache`** read-only property of the {{domxref("Request")}} interface contains the cache mode of the request. It controls how the request will interact with the browser's [HTTP cache](/en-US/docs/Web/HTTP/Caching). diff --git a/files/en-us/web/api/request/clone/index.md b/files/en-us/web/api/request/clone/index.md index 95d3738c16da978..1a3878ee5b2c4b1 100644 --- a/files/en-us/web/api/request/clone/index.md +++ b/files/en-us/web/api/request/clone/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.Request.clone --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}}{{AvailableInWorkers}} The **`clone()`** method of the {{domxref("Request")}} interface creates a copy of the current `Request` object. diff --git a/files/en-us/web/api/request/credentials/index.md b/files/en-us/web/api/request/credentials/index.md index bd9bfd45fc114a5..0179093ad859c4a 100644 --- a/files/en-us/web/api/request/credentials/index.md +++ b/files/en-us/web/api/request/credentials/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-property browser-compat: api.Request.credentials --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}}{{AvailableInWorkers}} The **`credentials`** read-only property of the {{domxref("Request")}} interface reflects the value given to the {{domxref("Request.Request()", "Request()")}} constructor in the [`credentials`](/en-US/docs/Web/API/RequestInit#credentials) option. It determines whether or not the browser sends credentials with the request, as well as whether any **`Set-Cookie`** response headers are respected. diff --git a/files/en-us/web/api/request/destination/index.md b/files/en-us/web/api/request/destination/index.md index 36f2da77809afd6..4493e87f734af83 100644 --- a/files/en-us/web/api/request/destination/index.md +++ b/files/en-us/web/api/request/destination/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-property browser-compat: api.Request.destination --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}}{{AvailableInWorkers}} The **`destination`** read-only property of the **{{domxref("Request")}}** interface returns a string diff --git a/files/en-us/web/api/request/formdata/index.md b/files/en-us/web/api/request/formdata/index.md index 2b7ea53f4850a86..41c9437f0a0ef8f 100644 --- a/files/en-us/web/api/request/formdata/index.md +++ b/files/en-us/web/api/request/formdata/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.Request.formData --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}}{{AvailableInWorkers}} The **`formData()`** method of the {{domxref("Request")}} interface reads the request body and returns it as a promise that resolves with a {{domxref("FormData")}} object. diff --git a/files/en-us/web/api/request/headers/index.md b/files/en-us/web/api/request/headers/index.md index d2d0002db916df4..70b8707ee233ea3 100644 --- a/files/en-us/web/api/request/headers/index.md +++ b/files/en-us/web/api/request/headers/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-property browser-compat: api.Request.headers --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}}{{AvailableInWorkers}} The **`headers`** read-only property of the {{domxref("Request")}} interface contains the {{domxref("Headers")}} object associated diff --git a/files/en-us/web/api/request/index.md b/files/en-us/web/api/request/index.md index d3566433c324221..3a0c609f5aa83f4 100644 --- a/files/en-us/web/api/request/index.md +++ b/files/en-us/web/api/request/index.md @@ -5,7 +5,7 @@ page-type: web-api-interface browser-compat: api.Request --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}}{{AvailableInWorkers}} The **`Request`** interface of the [Fetch API](/en-US/docs/Web/API/Fetch_API) represents a resource request. diff --git a/files/en-us/web/api/request/integrity/index.md b/files/en-us/web/api/request/integrity/index.md index cbe37656e11ef90..f7853bb1db068f0 100644 --- a/files/en-us/web/api/request/integrity/index.md +++ b/files/en-us/web/api/request/integrity/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-property browser-compat: api.Request.integrity --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}}{{AvailableInWorkers}} The **`integrity`** read-only property of the {{domxref("Request")}} interface contains the [subresource integrity](/en-US/docs/Web/Security/Subresource_Integrity) value of the request. diff --git a/files/en-us/web/api/request/json/index.md b/files/en-us/web/api/request/json/index.md index fbe6cea2ccda016..7350acbca59d024 100644 --- a/files/en-us/web/api/request/json/index.md +++ b/files/en-us/web/api/request/json/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.Request.json --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}}{{AvailableInWorkers}} The **`json()`** method of the {{domxref("Request")}} interface reads the request body and returns it as a promise that resolves with the result of parsing the body text as {{JSxRef("JSON")}}. diff --git a/files/en-us/web/api/request/method/index.md b/files/en-us/web/api/request/method/index.md index 68ba84ff3f6e90b..d02afd9b654bce2 100644 --- a/files/en-us/web/api/request/method/index.md +++ b/files/en-us/web/api/request/method/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-property browser-compat: api.Request.method --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}}{{AvailableInWorkers}} The **`method`** read-only property of the {{domxref("Request")}} interface contains the request's method (`GET`, diff --git a/files/en-us/web/api/request/mode/index.md b/files/en-us/web/api/request/mode/index.md index f4c55c56cfb3cdb..ff9c9975750bf81 100644 --- a/files/en-us/web/api/request/mode/index.md +++ b/files/en-us/web/api/request/mode/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-property browser-compat: api.Request.mode --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}}{{AvailableInWorkers}} The **`mode`** read-only property of the {{domxref("Request")}} interface contains the mode of the request (e.g., `cors`, diff --git a/files/en-us/web/api/request/redirect/index.md b/files/en-us/web/api/request/redirect/index.md index eb68dcf2de7fc9e..b6940276decf491 100644 --- a/files/en-us/web/api/request/redirect/index.md +++ b/files/en-us/web/api/request/redirect/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-property browser-compat: api.Request.redirect --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}}{{AvailableInWorkers}} The **`redirect`** read-only property of the {{domxref("Request")}} interface contains the mode for how redirects are handled. diff --git a/files/en-us/web/api/request/referrer/index.md b/files/en-us/web/api/request/referrer/index.md index 6fd7158d2c9b340..2706e1062d6c607 100644 --- a/files/en-us/web/api/request/referrer/index.md +++ b/files/en-us/web/api/request/referrer/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-property browser-compat: api.Request.referrer --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}}{{AvailableInWorkers}} The **`referrer`** read-only property of the {{domxref("Request")}} interface is set by the user agent to be the referrer of the diff --git a/files/en-us/web/api/request/referrerpolicy/index.md b/files/en-us/web/api/request/referrerpolicy/index.md index 3ee4faa06f14c5a..6db339e99b76ba7 100644 --- a/files/en-us/web/api/request/referrerpolicy/index.md +++ b/files/en-us/web/api/request/referrerpolicy/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-property browser-compat: api.Request.referrerPolicy --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}}{{AvailableInWorkers}} The **`referrerPolicy`** read-only property of the {{domxref("Request")}} interface returns the referrer policy, which governs what diff --git a/files/en-us/web/api/request/request/index.md b/files/en-us/web/api/request/request/index.md index 936c506403271ff..1e0d5c2c8ed6171 100644 --- a/files/en-us/web/api/request/request/index.md +++ b/files/en-us/web/api/request/request/index.md @@ -6,7 +6,7 @@ page-type: web-api-constructor browser-compat: api.Request.Request --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}}{{AvailableInWorkers}} The **`Request()`** constructor creates a new {{domxref("Request")}} object. diff --git a/files/en-us/web/api/request/signal/index.md b/files/en-us/web/api/request/signal/index.md index 0068e7aadf9d4d8..7608559a5f7bffa 100644 --- a/files/en-us/web/api/request/signal/index.md +++ b/files/en-us/web/api/request/signal/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-property browser-compat: api.Request.signal --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}}{{AvailableInWorkers}} The read-only **`signal`** property of the {{DOMxRef("Request")}} interface returns the {{domxref("AbortSignal")}} associated with the request. diff --git a/files/en-us/web/api/request/text/index.md b/files/en-us/web/api/request/text/index.md index 689801553f804f1..e52463b08142ee5 100644 --- a/files/en-us/web/api/request/text/index.md +++ b/files/en-us/web/api/request/text/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.Request.text --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}}{{AvailableInWorkers}} The **`text()`** method of the {{domxref("Request")}} interface reads the request body and returns it as a promise that resolves with a {{jsxref("String")}}. diff --git a/files/en-us/web/api/request/url/index.md b/files/en-us/web/api/request/url/index.md index 2deaabd1265e12e..8f44a6492d9f43a 100644 --- a/files/en-us/web/api/request/url/index.md +++ b/files/en-us/web/api/request/url/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-property browser-compat: api.Request.url --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}}{{AvailableInWorkers}} The **`url`** read-only property of the {{domxref("Request")}} interface contains the URL of the request. diff --git a/files/en-us/web/api/response/arraybuffer/index.md b/files/en-us/web/api/response/arraybuffer/index.md index d59e05d92cb64f0..79909029dd661d3 100644 --- a/files/en-us/web/api/response/arraybuffer/index.md +++ b/files/en-us/web/api/response/arraybuffer/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.Response.arrayBuffer --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}}{{AvailableInWorkers}} The **`arrayBuffer()`** method of the {{domxref("Response")}} interface takes a {{domxref("Response")}} stream and reads it to completion. It returns a promise diff --git a/files/en-us/web/api/response/blob/index.md b/files/en-us/web/api/response/blob/index.md index 46352c76b12099c..71a930f20532093 100644 --- a/files/en-us/web/api/response/blob/index.md +++ b/files/en-us/web/api/response/blob/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.Response.blob --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}}{{AvailableInWorkers}} The **`blob()`** method of the {{domxref("Response")}} interface takes a {{domxref("Response")}} stream and reads it to completion. It returns a promise that diff --git a/files/en-us/web/api/response/body/index.md b/files/en-us/web/api/response/body/index.md index 89b8f914c82c833..6a9af2d4e6f2a27 100644 --- a/files/en-us/web/api/response/body/index.md +++ b/files/en-us/web/api/response/body/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-property browser-compat: api.Response.body --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}}{{AvailableInWorkers}} The **`body`** read-only property of the {{domxref("Response")}} interface is a {{domxref("ReadableStream")}} of the body contents. diff --git a/files/en-us/web/api/response/bodyused/index.md b/files/en-us/web/api/response/bodyused/index.md index 3e4461506403f71..bdba07490e533c8 100644 --- a/files/en-us/web/api/response/bodyused/index.md +++ b/files/en-us/web/api/response/bodyused/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-property browser-compat: api.Response.bodyUsed --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}}{{AvailableInWorkers}} The **`bodyUsed`** read-only property of the {{domxref("Response")}} interface is a boolean value that indicates whether the body has been read yet. diff --git a/files/en-us/web/api/response/bytes/index.md b/files/en-us/web/api/response/bytes/index.md index 1b53def3164cab1..d14e5faa377d878 100644 --- a/files/en-us/web/api/response/bytes/index.md +++ b/files/en-us/web/api/response/bytes/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.Response.bytes --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}}{{AvailableInWorkers}} The **`bytes()`** method of the {{domxref("Response")}} interface takes a {{domxref("Response")}} stream and reads it to completion. It returns a promise that resolves with a {{jsxref("Uint8Array")}}. diff --git a/files/en-us/web/api/response/clone/index.md b/files/en-us/web/api/response/clone/index.md index ddc3665c36494c1..95c5cdafe057ed5 100644 --- a/files/en-us/web/api/response/clone/index.md +++ b/files/en-us/web/api/response/clone/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.Response.clone --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}}{{AvailableInWorkers}} The **`clone()`** method of the {{domxref("Response")}} interface creates a clone of a response object, identical in every way, but stored in a different variable. diff --git a/files/en-us/web/api/response/error_static/index.md b/files/en-us/web/api/response/error_static/index.md index 9914ac12d8dbd2f..520c0e8e2ad9e95 100644 --- a/files/en-us/web/api/response/error_static/index.md +++ b/files/en-us/web/api/response/error_static/index.md @@ -6,7 +6,7 @@ page-type: web-api-static-method browser-compat: api.Response.error_static --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}}{{AvailableInWorkers}} The **`error()`** static method of the {{domxref("Response")}} interface returns a new `Response` object associated with a network error. diff --git a/files/en-us/web/api/response/formdata/index.md b/files/en-us/web/api/response/formdata/index.md index 6680103823905da..67c0b997cbcc69d 100644 --- a/files/en-us/web/api/response/formdata/index.md +++ b/files/en-us/web/api/response/formdata/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.Response.formData --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}}{{AvailableInWorkers}} The **`formData()`** method of the {{domxref("Response")}} interface takes a {{domxref("Response")}} stream and reads it to completion. It returns a promise diff --git a/files/en-us/web/api/response/headers/index.md b/files/en-us/web/api/response/headers/index.md index 45836202bc641be..10ebac24726431a 100644 --- a/files/en-us/web/api/response/headers/index.md +++ b/files/en-us/web/api/response/headers/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-property browser-compat: api.Response.headers --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}}{{AvailableInWorkers}} The **`headers`** read-only property of the {{domxref("Response")}} interface contains the {{domxref("Headers")}} object associated diff --git a/files/en-us/web/api/response/index.md b/files/en-us/web/api/response/index.md index cfbede8c5d2341f..06bcfb4b6769aa2 100644 --- a/files/en-us/web/api/response/index.md +++ b/files/en-us/web/api/response/index.md @@ -5,7 +5,7 @@ page-type: web-api-interface browser-compat: api.Response --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}}{{AvailableInWorkers}} The **`Response`** interface of the [Fetch API](/en-US/docs/Web/API/Fetch_API) represents the response to a request. diff --git a/files/en-us/web/api/response/json/index.md b/files/en-us/web/api/response/json/index.md index 4a85d80af3330fa..a910801dc6cc925 100644 --- a/files/en-us/web/api/response/json/index.md +++ b/files/en-us/web/api/response/json/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.Response.json --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}}{{AvailableInWorkers}} The **`json()`** method of the {{DOMxRef("Response")}} interface takes a {{DOMxRef("Response")}} stream and reads it to completion. It returns a promise which diff --git a/files/en-us/web/api/response/json_static/index.md b/files/en-us/web/api/response/json_static/index.md index e051e95b9ad8677..eab1c929d5fa7c5 100644 --- a/files/en-us/web/api/response/json_static/index.md +++ b/files/en-us/web/api/response/json_static/index.md @@ -6,7 +6,7 @@ page-type: web-api-static-method browser-compat: api.Response.json_static --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}}{{AvailableInWorkers}} The **`json()`** static method of the {{domxref("Response")}} interface returns a `Response` that contains the provided JSON data as body, and a {{HTTPHeader("Content-Type")}} header which is set to `application/json`. The response status, status message, and additional headers can also be set. diff --git a/files/en-us/web/api/response/ok/index.md b/files/en-us/web/api/response/ok/index.md index 0ef56346dc9fdc8..5dea0dbcc8f98bd 100644 --- a/files/en-us/web/api/response/ok/index.md +++ b/files/en-us/web/api/response/ok/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-property browser-compat: api.Response.ok --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}}{{AvailableInWorkers}} The **`ok`** read-only property of the {{domxref("Response")}} interface contains a Boolean stating whether the response was successful (status in the range 200-299) or not. diff --git a/files/en-us/web/api/response/redirect_static/index.md b/files/en-us/web/api/response/redirect_static/index.md index 71394e32c0ae784..a5f5813fb0a16b2 100644 --- a/files/en-us/web/api/response/redirect_static/index.md +++ b/files/en-us/web/api/response/redirect_static/index.md @@ -6,7 +6,7 @@ page-type: web-api-static-method browser-compat: api.Response.redirect_static --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}}{{AvailableInWorkers}} The **`redirect()`** static method of the {{domxref("Response")}} interface returns a `Response` resulting in a redirect to the specified URL. diff --git a/files/en-us/web/api/response/redirected/index.md b/files/en-us/web/api/response/redirected/index.md index 26d553344343428..ac760a24fc8cbcd 100644 --- a/files/en-us/web/api/response/redirected/index.md +++ b/files/en-us/web/api/response/redirected/index.md @@ -6,9 +6,9 @@ page-type: web-api-instance-property browser-compat: api.Response.redirected --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}}{{AvailableInWorkers}} -The read-only **`redirected`** property of the {{domxref("Response")}} interface indicates whether or not the response is the result of a request you made which was redirected. +The **`redirected`** read-only property of the {{domxref("Response")}} interface indicates whether or not the response is the result of a request you made which was redirected. > [!NOTE] > Relying on redirected to filter out redirects makes it easy for a forged redirect to prevent your content from working as expected. diff --git a/files/en-us/web/api/response/response/index.md b/files/en-us/web/api/response/response/index.md index ff2baf649b4abaa..9240d905e953a4b 100644 --- a/files/en-us/web/api/response/response/index.md +++ b/files/en-us/web/api/response/response/index.md @@ -6,7 +6,7 @@ page-type: web-api-constructor browser-compat: api.Response.Response --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}}{{AvailableInWorkers}} The **`Response()`** constructor creates a new {{domxref("Response")}} object. diff --git a/files/en-us/web/api/response/status/index.md b/files/en-us/web/api/response/status/index.md index 8edf80850455fbd..e9e689bc951e356 100644 --- a/files/en-us/web/api/response/status/index.md +++ b/files/en-us/web/api/response/status/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-property browser-compat: api.Response.status --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}}{{AvailableInWorkers}} The **`status`** read-only property of the {{domxref("Response")}} interface contains the [HTTP status codes](/en-US/docs/Web/HTTP/Status) of the response. diff --git a/files/en-us/web/api/response/statustext/index.md b/files/en-us/web/api/response/statustext/index.md index f1bea094e95eaf4..1572ccdd3baabfd 100644 --- a/files/en-us/web/api/response/statustext/index.md +++ b/files/en-us/web/api/response/statustext/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-property browser-compat: api.Response.statusText --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}}{{AvailableInWorkers}} The **`statusText`** read-only property of the {{domxref("Response")}} interface contains the status message corresponding to the HTTP status code in {{domxref("Response.status")}}. diff --git a/files/en-us/web/api/response/text/index.md b/files/en-us/web/api/response/text/index.md index 8e2c4e821f2ea75..7aee94e73108112 100644 --- a/files/en-us/web/api/response/text/index.md +++ b/files/en-us/web/api/response/text/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-method browser-compat: api.Response.text --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}}{{AvailableInWorkers}} The **`text()`** method of the {{domxref("Response")}} interface takes a {{domxref("Response")}} stream and reads it to completion. It returns a promise that resolves with a {{jsxref("String")}}. diff --git a/files/en-us/web/api/response/type/index.md b/files/en-us/web/api/response/type/index.md index ab658892f611633..e0345e26b5f2b77 100644 --- a/files/en-us/web/api/response/type/index.md +++ b/files/en-us/web/api/response/type/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-property browser-compat: api.Response.type --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}}{{AvailableInWorkers}} The **`type`** read-only property of the {{domxref("Response")}} interface contains the type of the response. It can be one of the following: diff --git a/files/en-us/web/api/response/url/index.md b/files/en-us/web/api/response/url/index.md index dfb7b16d53a2a6b..a36f28afea395b0 100644 --- a/files/en-us/web/api/response/url/index.md +++ b/files/en-us/web/api/response/url/index.md @@ -6,7 +6,7 @@ page-type: web-api-instance-property browser-compat: api.Response.url --- -{{APIRef("Fetch API")}} +{{APIRef("Fetch API")}}{{AvailableInWorkers}} The **`url`** read-only property of the {{domxref("Response")}} interface contains the URL of the response. The value of the `url` property will be the final URL obtained after any redirects. diff --git a/files/en-us/web/api/rtcencodedaudioframe/index.md b/files/en-us/web/api/rtcencodedaudioframe/index.md index 4595b5155de1abf..ad9ec55cc81a0f7 100644 --- a/files/en-us/web/api/rtcencodedaudioframe/index.md +++ b/files/en-us/web/api/rtcencodedaudioframe/index.md @@ -12,9 +12,6 @@ The **`RTCEncodedAudioFrame`** of the [WebRTC API](/en-US/docs/Web/API/WebRTC_AP The interface provides methods and properties to get metadata about the frame, allowing its format and order in the sequence of frames to be determined. The `data` property gives access to the encoded frame data as a buffer, which might be encrypted, or otherwise modified by a transform. -> [!NOTE] -> This feature is available in [_Dedicated_ Web Workers](/en-US/docs/Web/API/Web_Workers_API#worker_types). - ## Instance properties - {{domxref("RTCEncodedAudioFrame.timestamp")}} {{ReadOnlyInline}} {{deprecated_inline}} {{non-standard_inline}} diff --git a/files/en-us/web/api/rtcencodedvideoframe/index.md b/files/en-us/web/api/rtcencodedvideoframe/index.md index 08e36376a8cf8c8..2371ebd136f338e 100644 --- a/files/en-us/web/api/rtcencodedvideoframe/index.md +++ b/files/en-us/web/api/rtcencodedvideoframe/index.md @@ -9,9 +9,6 @@ browser-compat: api.RTCEncodedVideoFrame The **`RTCEncodedVideoFrame`** of the [WebRTC API](/en-US/docs/Web/API/WebRTC_API) represents an encoded video frame in the WebRTC receiver or sender pipeline, which may be modified using a [WebRTC Encoded Transform](/en-US/docs/Web/API/WebRTC_API/Using_Encoded_Transforms). -> [!NOTE] -> This feature is available in [_Dedicated_ Web Workers](/en-US/docs/Web/API/Web_Workers_API#worker_types). - ## Instance properties - {{domxref("RTCEncodedVideoFrame.type")}} {{ReadOnlyInline}}