@wabarc/cairn
Version:
Node package and CLI tool for saving web page as single HTML file
16 lines (15 loc) • 406 B
TypeScript
import { ResponseType } from 'axios';
declare class HTTP {
private timeout;
private responseType;
constructor();
setHeader(key: string, val: string | number): this;
setResponseType(responseType: ResponseType): this;
setOptions(args: {
timeout?: number;
proxy?: string;
}): this;
fetch(url: string): Promise<any>;
}
declare const http: HTTP;
export { http };