22 lines
504 B
TypeScript
22 lines
504 B
TypeScript
import { Base, BaseOptions, Headers } from './base';
|
|
export interface ResponseOptions extends BaseOptions {
|
|
body: any;
|
|
status: number;
|
|
statusText: string;
|
|
}
|
|
export interface ResponseJSON {
|
|
headers: Headers;
|
|
body: any;
|
|
url: string;
|
|
status: number;
|
|
statusText: string;
|
|
}
|
|
export declare class Response extends Base {
|
|
status: number;
|
|
statusText: string;
|
|
body: any;
|
|
constructor(options: ResponseOptions);
|
|
statusType(): number;
|
|
toJSON(): ResponseJSON;
|
|
}
|