UNPKG

712 BTypeScriptView Raw
1/// <reference types="node" />
2import { CancellationToken, DownloadOptions, HttpExecutor } from "electron-builder-http";
3import { ClientRequest, RequestOptions } from "http";
4export declare class NodeHttpExecutor extends HttpExecutor<ClientRequest> {
5 private httpsAgentPromise;
6 download(url: string, destination: string, options?: DownloadOptions): Promise<string>;
7 doApiRequest<T>(options: RequestOptions, cancellationToken: CancellationToken, requestProcessor: (request: ClientRequest, reject: (error: Error) => void) => void, redirectCount?: number): Promise<T>;
8 protected doRequest(options: any, callback: (response: any) => void): any;
9}
10export declare const httpExecutor: NodeHttpExecutor;
11
\No newline at end of file