Interface Response
interface Response {
body: ReadableStream<Uint8Array>;
bodyUsed: boolean;
headers: Headers;
ok: boolean;
redirected: boolean;
status: number;
statusText: string;
type: ResponseType;
url: string;
arrayBuffer(): Promise<ArrayBuffer>;
blob(): Promise<Blob>;
clone(): Response;
formData(): Promise<FormData>;
json(): Promise<any>;
text(): Promise<string>;
}
body: ReadableStream<Uint8Array>;
bodyUsed: boolean;
headers: Headers;
ok: boolean;
redirected: boolean;
status: number;
statusText: string;
type: ResponseType;
url: string;
arrayBuffer(): Promise<ArrayBuffer>;
blob(): Promise<Blob>;
clone(): Response;
formData(): Promise<FormData>;
json(): Promise<any>;
text(): Promise<string>;
}
Index
Properties
Methods
Properties
Readonly
body
Readonly
bodyUsed
bodyUsed : boolean
Readonly
headers
Readonly
ok
ok: boolean
Readonly
redirected
redirected: boolean
Readonly
status
status: number
Readonly
statusText
statusText : string
Readonly
type
Readonly
url
url: string
Methods
arrayBuffer
- array
Buffer (): Promise<ArrayBuffer> Returns Promise<ArrayBuffer>
This Fetch API interface represents the response to a request.
MDN Reference