UNPKG

1.02 kBTypeScriptView Raw
1import { BaseRequestPolicy, RequestPolicy, RequestPolicyFactory, RequestPolicyOptionsLike } from "./requestPolicy";
2import { HttpOperationResponse } from "../httpOperationResponse";
3import { ProxySettings } from "../serviceClient";
4import { WebResourceLike } from "../webResource";
5/**
6 * @internal
7 */
8export declare const noProxyList: string[];
9/**
10 * @internal
11 */
12export declare function getEnvironmentValue(name: string): string | undefined;
13/**
14 * @internal
15 */
16export declare function loadNoProxy(): string[];
17export declare function getDefaultProxySettings(proxyUrl?: string): ProxySettings | undefined;
18export declare function proxyPolicy(proxySettings?: ProxySettings): RequestPolicyFactory;
19export declare class ProxyPolicy extends BaseRequestPolicy {
20 proxySettings: ProxySettings;
21 constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptionsLike, proxySettings: ProxySettings);
22 sendRequest(request: WebResourceLike): Promise<HttpOperationResponse>;
23}
24//# sourceMappingURL=proxyPolicy.d.ts.map
\No newline at end of file