Appearance
Interface: FetchResponse
The Response subset ported code reads; the body is decoded from the host's base64.
Properties
headers
ts
headers: object;forEach()
ts
forEach(callback): void;Parameters
callback
(value, key) => void
Returns
void
get()
ts
get(name): string | null;Parameters
name
string
Returns
string | null
has()
ts
has(name): boolean;Parameters
name
string
Returns
boolean
ok
ts
ok: boolean;redirected
ts
redirected: false;status
ts
status: number;statusText
ts
statusText: string;url
ts
url: string;Methods
arrayBuffer()
ts
arrayBuffer(): Promise<ArrayBuffer>;Returns
Promise<ArrayBuffer>
bytes()
ts
bytes(): Promise<Uint8Array<ArrayBufferLike>>;Returns
Promise<Uint8Array<ArrayBufferLike>>
json()
ts
json(): Promise<unknown>;Returns
Promise<unknown>
text()
ts
text(): Promise<string>;Returns
Promise<string>