# FetchResponseLike (@salmonui/data)

> The FetchResponseLike interface of @salmonui/data.

Canonical: https://salmonui.dev/docs/reference/data/FetchResponseLike

```ts
import type { FetchResponseLike } from '@salmonui/data';
```

Entry index: https://salmonui.dev/docs/reference/data (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data.md).

## Reference

Kind: interface

```ts
interface FetchResponseLike {
    readonly ok: boolean;
    readonly status: number;
    readonly statusText?: string;
    readonly headers?: {
        get(name: string): string | null;
    };
    json(): Promise<unknown>;
    text(): Promise<string>;
}
```

Members (6):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `ok` | `readonly ok: boolean;` |  |  |
| `status` | `readonly status: number;` |  |  |
| `statusText` | `readonly statusText?: string;` | optional |  |
| `headers` | `readonly headers?: {     get(name: string): string \| null; };` | optional |  |
| `json` | `json(): Promise<unknown>;` |  |  |
| `text` | `text(): Promise<string>;` |  |  |
