@btfuse/core
Version:
A native-first framework for building hybdrid web-native applications
19 lines (18 loc) • 615 B
TypeScript
import { FuseError } from './FuseError';
export declare class FuseAPIResponse {
private $content;
private $headers;
private $status;
constructor(content: ArrayBuffer, headers: string | null, status: number);
isError(): boolean;
getContentLength(): number;
getContentType(): string;
readAsArrayBuffer(): Promise<ArrayBuffer>;
readAsBlob(): Promise<Blob>;
readAsText(): Promise<string>;
readAsJSON<T = unknown>(): Promise<T>;
readAsError(): Promise<FuseError>;
getHeaders(): Map<string, string[]>;
getHeader(key: string): string[];
private $parseHeaders;
}