1 | import { HttpOperationResponse } from "../httpOperationResponse";
|
2 | import { WebResourceLike } from "../webResource";
|
3 | import { getDefaultUserAgentKey } from "./msRestUserAgentPolicy";
|
4 | import { BaseRequestPolicy, RequestPolicy, RequestPolicyFactory, RequestPolicyOptionsLike } from "./requestPolicy";
|
5 | export declare type TelemetryInfo = {
|
6 | key?: string;
|
7 | value?: string;
|
8 | };
|
9 | export declare const getDefaultUserAgentHeaderName: typeof getDefaultUserAgentKey;
|
10 | export declare function getDefaultUserAgentValue(): string;
|
11 | export declare function userAgentPolicy(userAgentData?: TelemetryInfo): RequestPolicyFactory;
|
12 | export declare class UserAgentPolicy extends BaseRequestPolicy {
|
13 | readonly _nextPolicy: RequestPolicy;
|
14 | readonly _options: RequestPolicyOptionsLike;
|
15 | protected headerKey: string;
|
16 | protected headerValue: string;
|
17 | constructor(_nextPolicy: RequestPolicy, _options: RequestPolicyOptionsLike, headerKey: string, headerValue: string);
|
18 | sendRequest(request: WebResourceLike): Promise<HttpOperationResponse>;
|
19 | addUserAgentHeader(request: WebResourceLike): void;
|
20 | }
|
21 | //# sourceMappingURL=userAgentPolicy.d.ts.map |
\ | No newline at end of file |