1 |
|
2 | import * as http from "http";
|
3 | import * as https from "https";
|
4 | import { ProxySettings } from "./serviceClient";
|
5 | import { HttpHeadersLike } from "./httpHeaders";
|
6 | export declare type ProxyAgent = {
|
7 | isHttps: boolean;
|
8 | agent: http.Agent | https.Agent;
|
9 | };
|
10 | export declare function createProxyAgent(requestUrl: string, proxySettings: ProxySettings, headers?: HttpHeadersLike): ProxyAgent;
|
11 | export interface HttpsProxyOptions {
|
12 | host: string;
|
13 | port: number;
|
14 | localAddress?: string;
|
15 | proxyAuth?: string;
|
16 | headers?: {
|
17 | [key: string]: any;
|
18 | };
|
19 | ca?: Buffer[];
|
20 | servername?: string;
|
21 | key?: Buffer;
|
22 | cert?: Buffer;
|
23 | }
|
24 | interface HttpsOverHttpsOptions {
|
25 | maxSockets?: number;
|
26 | ca?: Buffer[];
|
27 | key?: Buffer;
|
28 | cert?: Buffer;
|
29 | proxy?: HttpsProxyOptions;
|
30 | }
|
31 | export declare function createTunnel(isRequestHttps: boolean, isProxyHttps: boolean, tunnelOptions: HttpsOverHttpsOptions): http.Agent | https.Agent;
|
32 | export {};
|
33 |
|
\ | No newline at end of file |