UNPKG

node-multi-curl

Version:

A performant multi-curl class in Node.js that supports proxies and concurrent requests

19 lines (18 loc) 445 B
import { Request } from './Request'; import { IResponseOptions } from './types'; export declare class Response { url: string; body: string; error: string | null; statusCode: number; headers: Record<string, string>; request: Request; timings: { start: number; end: number; duration: number; }; constructor(options: IResponseOptions); isSuccess(): boolean; json<T = any>(): T; }