> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# fetch

APISummary
## Syntax

```typescript
fetch(resource);
fetch(resource, options);
```

### Parameters

#### resource

This defines the resource that you wish to fetch. This can either be:

- A string or any other object with stringify API — including a URL object — that provides the URL of the resource you want to fetch.

- A `Request` object.

#### options

A `RequestInit` object containing any custom settings that you want to apply to the request.

## Example

```typescript
const request = new Request('https://jsonplaceholder.typicode.com/todos/1');
const response = await fetch(request);
console.log(await response.json());
```

## Compatibility

:::info

- Client environment are different from Web, Lynx does not support Web-only features like: [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS)、redirect、keepalive related APIs. FormData/Blob related APIs are not supported.

- Web Platform supports Fetch API using Browser's Fetch implementation, it follows the same rules as the web.

:::

**Compatibility Table**

**Query:** `lynx-api.fetch.fetch`

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/fetch.json) · [API Reference](/next/guide/interaction/networking) · [MDN](https://developer.mozilla.org/en-US/docs/Web/API/Window/fetch)

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| fetch | Yes (2.18) | Yes (3.5) | Yes (2.18) | Yes (3.7) | Yes (3.7) | Yes |

**`fetch`**

<code>fetch</code>


### Headers

**Compatibility Table**

**Query:** `lynx-api.fetch.Headers`

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Headers.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Headers)

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| Headers | Yes (2.18) | Yes (3.5) | Yes (2.18) | Yes (3.7) | Yes (3.7) | Yes |
| Headers | Yes (2.18) | Yes (3.5) | Yes (2.18) | Yes (3.7) | Yes (3.7) | Yes |
| append | Yes (2.18) | Yes (3.5) | Yes (2.18) | Yes (3.7) | Yes (3.7) | Yes |
| delete | Yes (2.18) | Yes (3.5) | Yes (2.18) | Yes (3.7) | Yes (3.7) | Yes |
| entries | Yes (2.18) | Yes (3.5) | Yes (2.18) | Yes (3.7) | Yes (3.7) | Yes |
| forEach | Yes (2.18) | Yes (3.5) | Yes (2.18) | Yes (3.7) | Yes (3.7) | Yes |
| get | Yes (2.18) | Yes (3.5) | Yes (2.18) | Yes (3.7) | Yes (3.7) | Yes |
| getSetCookie | No | No | No | No | No | Yes |
| has | Yes (2.18) | Yes (3.5) | Yes (2.18) | Yes (3.7) | Yes (3.7) | Yes |
| keys | Yes (2.18) | Yes (3.5) | Yes (2.18) | Yes (3.7) | Yes (3.7) | Yes |
| set | Yes (2.18) | Yes (3.5) | Yes (2.18) | Yes (3.7) | Yes (3.7) | Yes |
| values | Yes (2.18) | Yes (3.5) | Yes (2.18) | Yes (3.7) | Yes (3.7) | Yes |
| @@iterator | Yes (2.18) | Yes (3.5) | Yes (2.18) | Yes (3.7) | Yes (3.7) | Yes |

**`Headers`**

**Specifications:**
- [https://fetch.spec.whatwg.org/#headers-class](https://fetch.spec.whatwg.org/#headers-class)

**`Headers`**

<code>Headers()</code> constructor

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Headers.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Headers/Headers)

**Specifications:**
- [https://fetch.spec.whatwg.org/#ref-for-dom-headers①](https://fetch.spec.whatwg.org/#ref-for-dom-headers①)

**`append`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Headers.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Headers/append)

**Specifications:**
- [https://fetch.spec.whatwg.org/#ref-for-dom-headers-append①](https://fetch.spec.whatwg.org/#ref-for-dom-headers-append①)

**`delete`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Headers.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Headers/delete)

**Specifications:**
- [https://fetch.spec.whatwg.org/#ref-for-dom-headers-delete①](https://fetch.spec.whatwg.org/#ref-for-dom-headers-delete①)

**`entries`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Headers.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Headers/entries)

**`forEach`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Headers.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Headers/forEach)

**`get`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Headers.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Headers/get)

**Specifications:**
- [https://fetch.spec.whatwg.org/#ref-for-dom-headers-get①](https://fetch.spec.whatwg.org/#ref-for-dom-headers-get①)

**`getSetCookie`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Headers.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Headers/getSetCookie)

**Specifications:**
- [https://fetch.spec.whatwg.org/#dom-headers-getsetcookie](https://fetch.spec.whatwg.org/#dom-headers-getsetcookie)

**`has`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Headers.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Headers/has)

**Specifications:**
- [https://fetch.spec.whatwg.org/#ref-for-dom-headers-has①](https://fetch.spec.whatwg.org/#ref-for-dom-headers-has①)

**`keys`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Headers.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Headers/keys)

**`set`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Headers.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Headers/set)

**Specifications:**
- [https://fetch.spec.whatwg.org/#ref-for-dom-headers-set①](https://fetch.spec.whatwg.org/#ref-for-dom-headers-set①)

**`values`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Headers.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Headers/values)

**`@@iterator`**

<code>[Symbol.iterator]</code>

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Headers.json)


### Request

**Compatibility Table**

**Query:** `lynx-api.fetch.Request`

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Request.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Request)

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| Request | Yes (2.18) | Yes (3.5) | Yes (2.18) | Yes (3.7) | Yes (3.7) | Yes |
| Request | Yes (2.18) | Yes (3.5) | Yes (2.18) | Yes (3.7) | Yes (3.7) | Yes |
| Request.cors | No | No | No | No | No | Yes |
| Request.init&#95;attributionReporting&#95;parameter | No | No | No | No | No | Yes |
| Request.init&#95;browsingTopics&#95;parameter | No | No | No | No | No | Yes |
| Request.init&#95;keepalive&#95;parameter | No | No | No | No | No | Yes |
| Request.init&#95;priority&#95;parameter | No | No | No | No | No | Yes |
| Request.init&#95;referrer&#95;parameter | No | No | No | No | No | Yes |
| Request.request&#95;body&#95;readablestream | No | No | No | No | No | Yes |
| Request.response&#95;body&#95;readablestream | No | No | No | No | No | Yes |
| arrayBuffer | Yes (2.18) | Yes (3.5) | Yes (2.18) | Yes (3.7) | Yes (3.7) | Yes |
| blob | No | No | No | No | No | Yes |
| body | No | No | No | No | No | Yes |
| bodyUsed | Yes (2.18) | Yes (3.5) | Yes (2.18) | Yes (3.7) | Yes (3.7) | Yes |
| bytes | Yes (2.18) | Yes (3.5) | Yes (2.18) | No | No | Yes |
| cache | No | No | No | No | No | Yes |
| cache.only-if-cached | No | No | No | No | No | Yes |
| clone | Yes (2.18) | Yes (3.5) | Yes (2.18) | Yes (3.7) | Yes (3.7) | Yes |
| credentials | No | No | No | No | No | Yes |
| destination | No | No | No | No | No | Yes |
| duplex | No | No | No | No | No | Unknown |
| formData | No | No | No | No | No | Yes |
| headers | Yes (2.18) | Yes (3.5) | Yes (2.18) | Yes (3.7) | Yes (3.7) | Yes |
| integrity | No | No | No | No | No | Yes |
| isHistoryNavigation | No | No | No | No | No | Unknown |
| json | Yes (2.18) | Yes (3.5) | Yes (2.18) | Yes (3.7) | Yes (3.7) | Yes |
| keepalive | No | No | No | No | No | Yes |
| method | Yes (2.18) | Yes (3.5) | Yes (2.18) | Yes (3.7) | Yes (3.7) | Yes |
| mode | No | No | No | No | No | Yes |
| mode.navigate&#95;mode | No | No | No | No | No | Yes |
| redirect | No | No | No | No | No | Yes |
| referrer | No | No | No | No | No | Yes |
| referrerPolicy | No | No | No | No | No | Yes |
| signal | Yes (2.18) | Yes (3.5) | Yes (2.18) | Yes (3.7) | Yes (3.7) | Yes |
| targetAddressSpace | No | No | No | No | No | Unknown |
| text | Yes (2.18) | Yes (3.5) | Yes (2.18) | Yes (3.7) | Yes (3.7) | Yes |
| url | Yes (2.18) | Yes (3.5) | Yes (2.18) | Yes (3.7) | Yes (3.7) | Yes |

**`Request`**

**Specifications:**
- [https://fetch.spec.whatwg.org/#request-class](https://fetch.spec.whatwg.org/#request-class)

**`Request`**

`Request()` constructor

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Request.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Request/Request)

**Specifications:**
- [https://fetch.spec.whatwg.org/#ref-for-dom-request①](https://fetch.spec.whatwg.org/#ref-for-dom-request①)

**`Request.cors`**

cors

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Request.json)

**`Request.init_attributionReporting_parameter`**

`init.attributionReporting` parameter

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Request.json)

**Specifications:**
- [https://wicg.github.io/attribution-reporting-api/#dom-requestinit-attributionreporting](https://wicg.github.io/attribution-reporting-api/#dom-requestinit-attributionreporting)

**`Request.init_browsingTopics_parameter`**

`init.browsingTopics` parameter

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Request.json)

**`Request.init_keepalive_parameter`**

`init.keepalive` parameter

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Request.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Request/keepalive)

**Specifications:**
- [https://fetch.spec.whatwg.org/#dom-requestinit-keepalive](https://fetch.spec.whatwg.org/#dom-requestinit-keepalive)

**`Request.init_priority_parameter`**

`init.priority` parameter

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Request.json)

**Specifications:**
- [https://fetch.spec.whatwg.org/#dom-requestinit-priority](https://fetch.spec.whatwg.org/#dom-requestinit-priority)

**`Request.init_referrer_parameter`**

`init.referrer` parameter

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Request.json)

**Specifications:**
- [https://fetch.spec.whatwg.org/#dom-requestinit-referrer](https://fetch.spec.whatwg.org/#dom-requestinit-referrer)

**`Request.request_body_readablestream`**

Send `ReadableStream` in request body

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Request.json)

**`Request.response_body_readablestream`**

Consume `ReadableStream` as a response body

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Request.json)

**`arrayBuffer`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Request.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer)

**Specifications:**
- [https://fetch.spec.whatwg.org/#ref-for-dom-body-arraybuffer①](https://fetch.spec.whatwg.org/#ref-for-dom-body-arraybuffer①)

**`blob`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Request.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Request/blob)

**Specifications:**
- [https://fetch.spec.whatwg.org/#ref-for-dom-body-blob①](https://fetch.spec.whatwg.org/#ref-for-dom-body-blob①)

**`body`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Request.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Request/body)

**Specifications:**
- [https://fetch.spec.whatwg.org/#ref-for-dom-body-body①](https://fetch.spec.whatwg.org/#ref-for-dom-body-body①)

**`bodyUsed`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Request.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed)

**Specifications:**
- [https://fetch.spec.whatwg.org/#ref-for-dom-body-bodyused①](https://fetch.spec.whatwg.org/#ref-for-dom-body-bodyused①)

**`bytes`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Request.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Request/bytes)

**Specifications:**
- [https://fetch.spec.whatwg.org/#dom-body-bytes](https://fetch.spec.whatwg.org/#dom-body-bytes)

**`cache`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Request.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Request/cache)

**Specifications:**
- [https://fetch.spec.whatwg.org/#ref-for-dom-request-cache②](https://fetch.spec.whatwg.org/#ref-for-dom-request-cache②)

**`cache.only-if-cached`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Request.json)

**`clone`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Request.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Request/clone)

**Specifications:**
- [https://fetch.spec.whatwg.org/#ref-for-dom-request-clone①](https://fetch.spec.whatwg.org/#ref-for-dom-request-clone①)

**`credentials`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Request.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Request/credentials)

**Specifications:**
- [https://fetch.spec.whatwg.org/#ref-for-dom-request-credentials②](https://fetch.spec.whatwg.org/#ref-for-dom-request-credentials②)

**`destination`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Request.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Request/destination)

**Specifications:**
- [https://fetch.spec.whatwg.org/#ref-for-dom-request-destination①](https://fetch.spec.whatwg.org/#ref-for-dom-request-destination①)

**`duplex`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Request.json)

**Specifications:**
- [https://fetch.spec.whatwg.org/#dom-request-duplex](https://fetch.spec.whatwg.org/#dom-request-duplex)

- **Web — Compatibility unknown:** Uses the browser Request implementation. Support for this experimental member depends on the browser.

**`formData`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Request.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Request/formData)

**Specifications:**
- [https://fetch.spec.whatwg.org/#ref-for-dom-body-formdata①](https://fetch.spec.whatwg.org/#ref-for-dom-body-formdata①)

**`headers`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Request.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Request/headers)

**Specifications:**
- [https://fetch.spec.whatwg.org/#ref-for-dom-request-headers②](https://fetch.spec.whatwg.org/#ref-for-dom-request-headers②)

**`integrity`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Request.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Request/integrity)

**Specifications:**
- [https://fetch.spec.whatwg.org/#ref-for-dom-request-integrity②](https://fetch.spec.whatwg.org/#ref-for-dom-request-integrity②)

**`isHistoryNavigation`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Request.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Request/isHistoryNavigation)

**Specifications:**
- [https://fetch.spec.whatwg.org/#ref-for-dom-request-ishistorynavigation①](https://fetch.spec.whatwg.org/#ref-for-dom-request-ishistorynavigation①)

- **Web — Compatibility unknown:** Uses the browser Request implementation. Support for this experimental member depends on the browser.

**`json`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Request.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Request/json)

**Specifications:**
- [https://fetch.spec.whatwg.org/#ref-for-dom-body-json①](https://fetch.spec.whatwg.org/#ref-for-dom-body-json①)

**`keepalive`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Request.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Request/keepalive)

**Specifications:**
- [https://fetch.spec.whatwg.org/#ref-for-dom-request-keepalive②](https://fetch.spec.whatwg.org/#ref-for-dom-request-keepalive②)

**`method`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Request.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Request/method)

**Specifications:**
- [https://fetch.spec.whatwg.org/#ref-for-dom-request-method②](https://fetch.spec.whatwg.org/#ref-for-dom-request-method②)

**`mode`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Request.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Request/mode)

**Specifications:**
- [https://fetch.spec.whatwg.org/#ref-for-dom-request-mode②](https://fetch.spec.whatwg.org/#ref-for-dom-request-mode②)

**`mode.navigate_mode`**

`navigate` mode

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Request.json)

**`redirect`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Request.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Request/redirect)

**Specifications:**
- [https://fetch.spec.whatwg.org/#ref-for-dom-request-redirect②](https://fetch.spec.whatwg.org/#ref-for-dom-request-redirect②)

**`referrer`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Request.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Request/referrer)

**Specifications:**
- [https://fetch.spec.whatwg.org/#ref-for-dom-request-referrer①](https://fetch.spec.whatwg.org/#ref-for-dom-request-referrer①)

**`referrerPolicy`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Request.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Request/referrerPolicy)

**Specifications:**
- [https://fetch.spec.whatwg.org/#ref-for-dom-request-referrerpolicy②](https://fetch.spec.whatwg.org/#ref-for-dom-request-referrerpolicy②)

**`signal`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Request.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Request/signal)

**Specifications:**
- [https://fetch.spec.whatwg.org/#ref-for-dom-request-signal②](https://fetch.spec.whatwg.org/#ref-for-dom-request-signal②)

**`targetAddressSpace`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Request.json)

**Specifications:**
- [https://wicg.github.io/private-network-access/#dom-request-targetaddressspace](https://wicg.github.io/private-network-access/#dom-request-targetaddressspace)

- **Web — Compatibility unknown:** Uses the browser Request implementation. Support for this experimental member depends on the browser.

**`text`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Request.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Request/text)

**Specifications:**
- [https://fetch.spec.whatwg.org/#ref-for-dom-body-text①](https://fetch.spec.whatwg.org/#ref-for-dom-body-text①)

**`url`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Request.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Request/url)

**Specifications:**
- [https://fetch.spec.whatwg.org/#ref-for-dom-request-url③](https://fetch.spec.whatwg.org/#ref-for-dom-request-url③)


### Response

**Compatibility Table**

**Query:** `lynx-api.fetch.Response`

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Response.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Response)

| Feature | Android | HarmonyOS | iOS | macOS | Windows | Web |
| --- | --- | --- | --- | --- | --- | --- |
| Response | Yes (2.18) | Yes (3.5) | Yes (2.18) | Yes (3.7) | Yes (3.7) | Yes |
| Response | Yes (2.18) | Yes (3.5) | Yes (2.18) | Yes (3.7) | Yes (3.7) | Yes |
| Response.accept&#95;readablestream | No | No | No | No | No | Yes |
| Response.body&#95;parameter&#95;optional | Yes (2.18) | Yes (3.5) | Yes (2.18) | Yes (3.7) | Yes (3.7) | Yes |
| arrayBuffer | Yes (2.18) | Yes (3.5) | Yes (2.18) | Yes (3.7) | Yes (3.7) | Yes |
| blob | No | No | No | No | No | Yes |
| body | Yes (2.18) | Yes (3.5) | Yes (2.18) | No | No | Yes |
| body.readable&#95;byte&#95;stream | Yes (3.7) | No | Yes (3.7) | No | No | Yes |
| bodyUsed | Yes (2.18) | Yes (3.5) | Yes (2.18) | Yes (3.7) | Yes (3.7) | Yes |
| bytes | Yes (2.18) | Yes (3.5) | Yes (2.18) | No | No | Yes |
| clone | Yes (2.18) | Yes (3.5) | Yes (2.18) | Yes (3.7) | Yes (3.7) | Yes |
| error&#95;static | No | No | No | No | No | Yes |
| formData | No | No | No | No | No | Yes |
| headers | Yes (2.18) | Yes (3.5) | Yes (2.18) | Yes (3.7) | Yes (3.7) | Yes |
| json | Yes (2.18) | Yes (3.5) | Yes (2.18) | Yes (3.7) | Yes (3.7) | Yes |
| json&#95;static | No | No | No | No | No | Yes |
| ok | Yes (2.18) | Yes (3.5) | Yes (2.18) | Yes (3.7) | Yes (3.7) | Yes |
| redirect&#95;static | No | No | No | No | No | Yes |
| redirected | No | No | No | No | No | Yes |
| status | Yes (2.18) | Yes (3.5) | Yes (2.18) | Yes (3.7) | Yes (3.7) | Yes |
| statusText | Yes (2.18) | Yes (3.5) | Yes (2.18) | Yes (3.7) | Yes (3.7) | Yes |
| text | Yes (2.18) | Yes (3.5) | Yes (2.18) | Yes (3.7) | Yes (3.7) | Yes |
| type | No | No | No | No | No | Yes |
| url | Yes (2.18) | Yes (3.5) | Yes (2.18) | Yes (3.7) | Yes (3.7) | Yes |

**`Response`**

**Specifications:**
- [https://fetch.spec.whatwg.org/#response-class](https://fetch.spec.whatwg.org/#response-class)

**`Response`**

`Response()` constructor

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Response.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Response/Response)

**Specifications:**
- [https://fetch.spec.whatwg.org/#ref-for-dom-response①](https://fetch.spec.whatwg.org/#ref-for-dom-response①)

**`Response.accept_readablestream`**

body parameter accepts ReadableByteStream

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Response.json)

**`Response.body_parameter_optional`**

`body` parameter is optional

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Response.json)

**`arrayBuffer`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Response.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Response/arrayBuffer)

**Specifications:**
- [https://fetch.spec.whatwg.org/#ref-for-dom-body-arraybuffer①](https://fetch.spec.whatwg.org/#ref-for-dom-body-arraybuffer①)

**`blob`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Response.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Response/blob)

**Specifications:**
- [https://fetch.spec.whatwg.org/#ref-for-dom-body-blob①](https://fetch.spec.whatwg.org/#ref-for-dom-body-blob①)

**`body`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Response.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Response/body)

**Specifications:**
- [https://fetch.spec.whatwg.org/#ref-for-dom-body-body①](https://fetch.spec.whatwg.org/#ref-for-dom-body-body①)

**`body.readable_byte_stream`**

`body` is a readable byte stream

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Response.json)

**`bodyUsed`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Response.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Response/bodyUsed)

**Specifications:**
- [https://fetch.spec.whatwg.org/#ref-for-dom-body-bodyused①](https://fetch.spec.whatwg.org/#ref-for-dom-body-bodyused①)

**`bytes`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Response.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Response/bytes)

**Specifications:**
- [https://fetch.spec.whatwg.org/#dom-body-bytes](https://fetch.spec.whatwg.org/#dom-body-bytes)

**`clone`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Response.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Response/clone)

**Specifications:**
- [https://fetch.spec.whatwg.org/#ref-for-dom-response-clone①](https://fetch.spec.whatwg.org/#ref-for-dom-response-clone①)

**`error_static`**

`error()` static method

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Response.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Response/error_static)

**Specifications:**
- [https://fetch.spec.whatwg.org/#ref-for-dom-response-error①](https://fetch.spec.whatwg.org/#ref-for-dom-response-error①)

**`formData`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Response.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Response/formData)

**Specifications:**
- [https://fetch.spec.whatwg.org/#ref-for-dom-body-formdata①](https://fetch.spec.whatwg.org/#ref-for-dom-body-formdata①)

**`headers`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Response.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Response/headers)

**Specifications:**
- [https://fetch.spec.whatwg.org/#ref-for-dom-response-headers①](https://fetch.spec.whatwg.org/#ref-for-dom-response-headers①)

**`json`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Response.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Response/json)

**Specifications:**
- [https://fetch.spec.whatwg.org/#ref-for-dom-body-json①](https://fetch.spec.whatwg.org/#ref-for-dom-body-json①)

**`json_static`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Response.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Response/json_static)

**Specifications:**
- [https://fetch.spec.whatwg.org/#ref-for-dom-response-json①](https://fetch.spec.whatwg.org/#ref-for-dom-response-json①)

**`ok`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Response.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Response/ok)

**Specifications:**
- [https://fetch.spec.whatwg.org/#ref-for-dom-response-ok②](https://fetch.spec.whatwg.org/#ref-for-dom-response-ok②)

**`redirect_static`**

`redirect()` static method

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Response.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Response/redirect_static)

**Specifications:**
- [https://fetch.spec.whatwg.org/#ref-for-dom-response-redirect①](https://fetch.spec.whatwg.org/#ref-for-dom-response-redirect①)

**`redirected`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Response.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Response/redirected)

**Specifications:**
- [https://fetch.spec.whatwg.org/#ref-for-dom-response-redirected①](https://fetch.spec.whatwg.org/#ref-for-dom-response-redirected①)

**`status`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Response.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Response/status)

**Specifications:**
- [https://fetch.spec.whatwg.org/#ref-for-dom-response-status①](https://fetch.spec.whatwg.org/#ref-for-dom-response-status①)

**`statusText`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Response.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Response/statusText)

**Specifications:**
- [https://fetch.spec.whatwg.org/#ref-for-dom-response-statustext①](https://fetch.spec.whatwg.org/#ref-for-dom-response-statustext①)

**`text`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Response.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Response/text)

**Specifications:**
- [https://fetch.spec.whatwg.org/#ref-for-dom-body-text①](https://fetch.spec.whatwg.org/#ref-for-dom-body-text①)

**`type`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Response.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Response/type)

**Specifications:**
- [https://fetch.spec.whatwg.org/#ref-for-dom-response-type①](https://fetch.spec.whatwg.org/#ref-for-dom-response-type①)

**`url`**

[Source](https://github.com/lynx-family/lynx-website/tree/main/packages/lynx-compat-data/lynx-api/fetch/Response.json) · [MDN](https://developer.mozilla.org/docs/Web/API/Response/url)

**Specifications:**
- [https://fetch.spec.whatwg.org/#ref-for-dom-response-url①](https://fetch.spec.whatwg.org/#ref-for-dom-response-url①)

