UNPKG

electron-builder-util

Version:

Part of [electron-builder](https://github.com/electron-userland/electron-builder).

11 lines (10 loc) 712 B
/// <reference types="node" /> import { CancellationToken, DownloadOptions, HttpExecutor } from "electron-builder-http"; import { ClientRequest, RequestOptions } from "http"; export declare class NodeHttpExecutor extends HttpExecutor<ClientRequest> { private httpsAgentPromise; download(url: string, destination: string, options?: DownloadOptions): Promise<string>; doApiRequest<T>(options: RequestOptions, cancellationToken: CancellationToken, requestProcessor: (request: ClientRequest, reject: (error: Error) => void) => void, redirectCount?: number): Promise<T>; protected doRequest(options: any, callback: (response: any) => void): any; } export declare const httpExecutor: NodeHttpExecutor;