Properties
Optional
adapter
adapter?: (<T>(options: GaxiosOptions, defaultAdapter: ((options: GaxiosOptions) => GaxiosPromise<T>)) => GaxiosPromise<T>)
Type declaration
-
- <T>(options: GaxiosOptions, defaultAdapter: ((options: GaxiosOptions) => GaxiosPromise<T>)): GaxiosPromise<T>
-
Parameters
-
options: GaxiosOptions
-
defaultAdapter: ((options: GaxiosOptions) => GaxiosPromise<T>)
-
- (options: GaxiosOptions): GaxiosPromise<T>
-
Returns GaxiosPromise<T>
Returns GaxiosPromise<T>
Optional
agent
agent?: Agent | ((parsedUrl: URL) => Agent)
Optional
baseURL
baseURL?: string
Optional
baseUrl
baseUrl?: string
Optional
follow
follow?: number
Optional
headers
headers?: Headers
Optional
http2
http2?: boolean
Optional
maxContentLength
maxContentLength?: number
Optional
maxRedirects
maxRedirects?: number
Optional
method
method?: "GET" | "HEAD" | "POST" | "DELETE" | "PUT" | "CONNECT" | "OPTIONS" | "TRACE" | "PATCH"
Optional
onUploadProgress
onUploadProgress?: ((progressEvent: any) => void)
Type declaration
-
- (progressEvent: any): void
-
Returns void
Optional
params
params?: any
Optional
paramsSerializer
paramsSerializer?: ((params: {
[index: string]: string | number;
}) => string)
Type declaration
-
- (params: {
[index: string]: string | number;
}): string
-
Parameters
-
params: {
[index: string]: string | number;
}
-
[index: string]: string | number
Returns string
responseType
responseType: "stream"
Optional
retry
retry?: boolean
Optional
retryConfig
retryConfig?: RetryConfig
Optional
rootUrl
rootUrl?: string
Optional
signal
signal?: AbortSignal
Optional
size
size?: number
Optional
timeout
timeout?: number
Optional
url
url?: string
Optional
userAgentDirectives
userAgentDirectives?: UserAgentDirective[]
Optional
validateStatus
validateStatus?: ((status: number) => boolean)
Type declaration
-
- (status: number): boolean
-
Returns boolean
Optional method to override making the actual HTTP request. Useful for writing tests.