CustomFetchResponse
type CustomFetchResponse = {
headers: Record<string, string>;
ok: boolean;
status: number;
statusText: string;
json: Promise<unknown>;
text: Promise<string>;
};
Custom fetch response interface that custom HTTP clients must implement
Properties
headers
headers: Record<string, string>;
ok
ok: boolean;
status
status: number;
statusText
statusText: string;
Methods
json()
json(): Promise<unknown>;
Returns
Promise<unknown>
text()
text(): Promise<string>;
Returns
Promise<string>