mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-07-19 21:18:22 +02:00
feat: add @actions/cache
This commit is contained in:
parent
b15fb7d098
commit
16e8c96a41
1932 changed files with 261172 additions and 10 deletions
28
node_modules/@azure/ms-rest-js/es/lib/policies/throttlingRetryPolicy.d.ts
generated
vendored
Normal file
28
node_modules/@azure/ms-rest-js/es/lib/policies/throttlingRetryPolicy.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
import { BaseRequestPolicy, RequestPolicy, RequestPolicyOptionsLike, RequestPolicyFactory } from "./requestPolicy";
|
||||
import { WebResourceLike } from "../webResource";
|
||||
import { HttpOperationResponse } from "../httpOperationResponse";
|
||||
/**
|
||||
* Options that control how to retry on response status code 429.
|
||||
*/
|
||||
export interface ThrottlingRetryOptions {
|
||||
/**
|
||||
* The maximum number of retry attempts. Defaults to 3.
|
||||
*/
|
||||
maxRetries?: number;
|
||||
}
|
||||
export declare function throttlingRetryPolicy(maxRetries?: number): RequestPolicyFactory;
|
||||
/**
|
||||
* To learn more, please refer to
|
||||
* https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-request-limits,
|
||||
* https://docs.microsoft.com/en-us/azure/azure-subscription-service-limits and
|
||||
* https://docs.microsoft.com/en-us/azure/virtual-machines/troubleshooting/troubleshooting-throttling-errors
|
||||
*/
|
||||
export declare class ThrottlingRetryPolicy extends BaseRequestPolicy {
|
||||
private retryLimit;
|
||||
constructor(nextPolicy: RequestPolicy, options: RequestPolicyOptionsLike, retryLimit: number);
|
||||
sendRequest(httpRequest: WebResourceLike): Promise<HttpOperationResponse>;
|
||||
private retry;
|
||||
static parseRetryAfterHeader(headerValue: string): number | undefined;
|
||||
static parseDateRetryAfterHeader(headerValue: string): number | undefined;
|
||||
}
|
||||
//# sourceMappingURL=throttlingRetryPolicy.d.ts.map
|
Loading…
Add table
Add a link
Reference in a new issue