1 | import { BaseRequestPolicy, RequestPolicy, RequestPolicyOptionsLike, RequestPolicyFactory } from "./requestPolicy";
|
2 | import { WebResourceLike } from "../webResource";
|
3 | import { HttpOperationResponse } from "../httpOperationResponse";
|
4 |
|
5 |
|
6 |
|
7 | export interface ThrottlingRetryOptions {
|
8 | |
9 |
|
10 |
|
11 | maxRetries?: number;
|
12 | }
|
13 | export declare function throttlingRetryPolicy(maxRetries?: number): RequestPolicyFactory;
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 | export declare class ThrottlingRetryPolicy extends BaseRequestPolicy {
|
21 | private retryLimit;
|
22 | constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptionsLike, retryLimit: number);
|
23 | sendRequest(httpRequest: WebResourceLike): Promise<HttpOperationResponse>;
|
24 | private retry;
|
25 | static parseRetryAfterHeader(headerValue: string): number | undefined;
|
26 | static parseDateRetryAfterHeader(headerValue: string): number | undefined;
|
27 | }
|
28 | //# sourceMappingURL=throttlingRetryPolicy.d.ts.map |
\ | No newline at end of file |