jokkerr
Version:
Node package and CLI tool for saving web page as single HTML file
15 lines (14 loc) • 382 B
TypeScript
import { ResponseType } from 'axios';
export declare class HTTP {
private timeout;
private headers;
private responseType;
constructor();
private do;
setHeader(key: string, val: string | number): this;
setResponseType(responseType: ResponseType): this;
setOptions(args: {
timeout: number;
}): this;
fetch(url: string): Promise<any>;
}