1 | import { HttpOperationResponse } from "../httpOperationResponse";
|
2 | import { WebResourceLike } from "../webResource";
|
3 | import { BaseRequestPolicy, RequestPolicy, RequestPolicyFactory, RequestPolicyOptionsLike } from "./requestPolicy";
|
4 |
|
5 |
|
6 |
|
7 | export interface RedirectOptions {
|
8 | handleRedirects: boolean;
|
9 | maxRetries?: number;
|
10 | }
|
11 | export declare const DefaultRedirectOptions: RedirectOptions;
|
12 | export declare function redirectPolicy(maximumRetries?: number): RequestPolicyFactory;
|
13 | export declare class RedirectPolicy extends BaseRequestPolicy {
|
14 | readonly maxRetries: number;
|
15 | constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptionsLike, maxRetries?: number);
|
16 | sendRequest(request: WebResourceLike): Promise<HttpOperationResponse>;
|
17 | }
|
18 | //# sourceMappingURL=redirectPolicy.d.ts.map |
\ | No newline at end of file |