electronHttpExecutor.d.ts 830 B

12345678910111213
  1. /// <reference types="node" />
  2. import { DownloadOptions, HttpExecutor } from "builder-util-runtime";
  3. import { RequestOptions } from "http";
  4. export declare type LoginCallback = (username: string, password: string) => void;
  5. export declare class ElectronHttpExecutor extends HttpExecutor<Electron.ClientRequest> {
  6. private readonly proxyLoginCallback?;
  7. constructor(proxyLoginCallback?: ((authInfo: any, callback: LoginCallback) => void) | undefined);
  8. download(url: string, destination: string, options: DownloadOptions): Promise<string>;
  9. doRequest(options: any, callback: (response: any) => void): any;
  10. private addProxyLoginHandler;
  11. protected addRedirectHandlers(request: any, options: RequestOptions, reject: (error: Error) => void, redirectCount: number, handler: (options: RequestOptions) => void): void;
  12. }