/var/www/qr4y.com/server/delivery/node_modules/google-gax/node_modules/gaxios/build/src
NameSizeModeActions
common.d.ts43720644editdlrm
common.js10400644editdlrm
common.js.map5270644editdlrm
gaxios.d.ts15980644editdlrm
gaxios.js114680644editdlrm
gaxios.js.map84900644editdlrm
index.d.ts5310644editdlrm
index.js13870644editdlrm
index.js.map4900644editdlrm
retry.d.ts2400644editdlrm
retry.js52060644editdlrm
retry.js.map35660644editdlrm
Edit: /var/www/qr4y.com/server/delivery/node_modules/google-gax/node_modules/gaxios/build/src/common.d.ts (4372B)
/// import { AbortSignal } from 'abort-controller'; import { Agent } from 'http'; import { URL } from 'url'; export declare class GaxiosError extends Error { code?: string; response?: GaxiosResponse; config: GaxiosOptions; constructor(message: string, options: GaxiosOptions, response: GaxiosResponse); } export interface Headers { [index: string]: any; } export declare type GaxiosPromise = Promise>; export interface GaxiosXMLHttpRequest { responseURL: string; } export interface GaxiosResponse { config: GaxiosOptions; data: T; status: number; statusText: string; headers: Headers; request: GaxiosXMLHttpRequest; } /** * Request options that are used to form the request. */ export interface GaxiosOptions { /** * Optional method to override making the actual HTTP request. Useful * for writing tests. */ adapter?: (options: GaxiosOptions, defaultAdapter: (options: GaxiosOptions) => GaxiosPromise) => GaxiosPromise; url?: string; baseUrl?: string; baseURL?: string; method?: 'GET' | 'HEAD' | 'POST' | 'DELETE' | 'PUT' | 'CONNECT' | 'OPTIONS' | 'TRACE' | 'PATCH'; headers?: Headers; data?: any; body?: any; /** * The maximum size of the http response content in bytes allowed. */ maxContentLength?: number; /** * The maximum number of redirects to follow. Defaults to 20. */ maxRedirects?: number; follow?: number; params?: any; paramsSerializer?: (params: { [index: string]: string | number; }) => string; timeout?: number; /** * @deprecated ignored */ onUploadProgress?: (progressEvent: any) => void; responseType?: 'arraybuffer' | 'blob' | 'json' | 'text' | 'stream'; agent?: Agent | ((parsedUrl: URL) => Agent); validateStatus?: (status: number) => boolean; retryConfig?: RetryConfig; retry?: boolean; signal?: AbortSignal; size?: number; /** * Implementation of `fetch` to use when making the API call. By default, * will use the browser context if available, and fall back to `node-fetch` * in node.js otherwise. */ fetchImplementation?: FetchImplementation; cert?: string; key?: string; } /** * Configuration for the Gaxios `request` method. */ export interface RetryConfig { /** * The number of times to retry the request. Defaults to 3. */ retry?: number; /** * The number of retries already attempted. */ currentRetryAttempt?: number; /** * The amount of time to initially delay the retry, in ms. Defaults to 100ms. */ retryDelay?: number; /** * The HTTP Methods that will be automatically retried. * Defaults to ['GET','PUT','HEAD','OPTIONS','DELETE'] */ httpMethodsToRetry?: string[]; /** * The HTTP response status codes that will automatically be retried. * Defaults to: [[100, 199], [429, 429], [500, 599]] */ statusCodesToRetry?: number[][]; /** * Function to invoke when a retry attempt is made. */ onRetryAttempt?: (err: GaxiosError) => Promise | void; /** * Function to invoke which determines if you should retry */ shouldRetry?: (err: GaxiosError) => Promise | boolean; /** * When there is no response, the number of retries to attempt. Defaults to 2. */ noResponseRetries?: number; } export declare type FetchImplementation = (input: FetchRequestInfo, init?: FetchRequestInit) => Promise; export declare type FetchRequestInfo = any; export interface FetchResponse { readonly status: number; readonly statusText: string; readonly url: string; readonly body: unknown | null; arrayBuffer(): Promise; blob(): Promise; readonly headers: FetchHeaders; json(): Promise; text(): Promise; } export interface FetchRequestInit { method?: string; } export interface FetchHeaders { append(name: string, value: string): void; delete(name: string): void; get(name: string): string | null; has(name: string): boolean; set(name: string, value: string): void; forEach(callbackfn: (value: string, key: string) => void, thisArg?: any): void; }