popsicle
Version:
Simple HTTP requests for node and the browser
22 lines (21 loc) • 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;
}