LarpixClient/electron/node_modules/electron-updater/out/electronHttpExecutor.d.ts
olcxja cca8b02fea
Some checks failed
Android Build / publish (push) Successful in 33s
Linux Build / publish (push) Failing after 25s
Update gitignore (sorry)
2026-05-10 14:02:17 +02:00

17 lines
1.1 KiB
TypeScript

/// <reference types="node" />
import { DownloadOptions, HttpExecutor } from "builder-util-runtime";
import { AuthInfo } from "electron";
import { RequestOptions } from "http";
import Session = Electron.Session;
import ClientRequest = Electron.ClientRequest;
export declare type LoginCallback = (username: string, password: string) => void;
export declare const NET_SESSION_NAME = "electron-updater";
export declare function getNetSession(): Session;
export declare class ElectronHttpExecutor extends HttpExecutor<Electron.ClientRequest> {
private readonly proxyLoginCallback?;
private cachedSession;
constructor(proxyLoginCallback?: ((authInfo: AuthInfo, callback: LoginCallback) => void) | undefined);
download(url: URL, destination: string, options: DownloadOptions): Promise<string>;
createRequest(options: any, callback: (response: any) => void): Electron.ClientRequest;
protected addRedirectHandlers(request: ClientRequest, options: RequestOptions, reject: (error: Error) => void, redirectCount: number, handler: (options: RequestOptions) => void): void;
}