# KyRequest

Import it from `ky`.

```ts
type KyRequest<T = unknown> = {
	clone: () => KyRequest<T>;
	json: <J = T>() => Promise<J>;
} & Request;
```

**Properties**

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| `clone` | `() => KyRequest<T>` |  |  |
| `json` | `<J = T>() => Promise<J>` |  |  |
| `cache` | `RequestCache` |  | The **`cache`** read-only property of the Request interface contains the cache mode of the request. |
| `credentials` | `RequestCredentials` |  | The **`credentials`** read-only property of the Request interface reflects the value given to the Request.Request() constructor in the `credentials` option. |
| `destination` | `RequestDestination` |  | The **`destination`** read-only property of the **Request** interface returns a string describing the type of content being requested. |
| `headers` | `Headers` |  | The **`headers`** read-only property of the with the request. |
| `integrity` | `string` |  | The **`integrity`** read-only property of the Request interface contains the subresource integrity value of the request. |
| `keepalive` | `boolean` |  | The **`keepalive`** read-only property of the Request interface contains the request's `keepalive` setting (`true` or `false`), which indicates whether the browser will keep the associated request alive if the page that initiated it is unloaded before the request is complete. |
| `method` | `string` |  | The **`method`** read-only property of the `POST`, etc.) A String indicating the method of the request. |
| `mode` | `RequestMode` |  | The **`mode`** read-only property of the Request interface contains the mode of the request (e.g., `cors`, `no-cors`, `same-origin`, or `navigate`.) This is used to determine if cross-origin requests lead to valid responses, and which properties of the response are readable. |
| `redirect` | `RequestRedirect` |  | The **`redirect`** read-only property of the Request interface contains the mode for how redirects are handled. |
| `referrer` | `string` |  | The **`referrer`** read-only property of the Request. |
| `referrerPolicy` | `ReferrerPolicy` |  | The **`referrerPolicy`** read-only property of the referrer information, sent in the Referer header, should be included with the request. |
| `signal` | `AbortSignal` |  | The read-only **`signal`** property of the Request interface returns the AbortSignal associated with the request. |
| `url` | `string` |  | The **`url`** read-only property of the Request interface contains the URL of the request. |
| `body` | `ReadableStream<Uint8Array<ArrayBuffer>> \| null` |  | [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body) |
| `bodyUsed` | `boolean` |  | [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed) |

**Members**

- `arrayBuffer(): Promise<ArrayBuffer>` — [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer)
- `blob(): Promise<Blob>` — [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob)
- `bytes(): Promise<Uint8Array<ArrayBuffer>>` — [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bytes)
- `formData(): Promise<FormData>` — [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData)
- `text(): Promise<string>` — [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text)
