Options
All
  • Public
  • Public/Protected
  • All
Menu

Request options that are used to form the request.

Hierarchy

  • GaxiosOptions

Index

Properties

agent?: Agent | ((parsedUrl: URL) => Agent)
baseURL?: string
baseUrl?: string
body?: any
cert?: string
data?: any
errorRedactor?: false | (<T>(data: { config?: RedactableGaxiosOptions; response?: RedactableGaxiosResponse<T> }) => { config?: RedactableGaxiosOptions; response?: RedactableGaxiosResponse<T> })

An experimental error redactor.

experimental
fetchImplementation?: FetchImplementation

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.

follow?: number
headers?: Headers
key?: string
maxContentLength?: number

The maximum size of the http response content in bytes allowed.

maxRedirects?: number

The maximum number of redirects to follow. Defaults to 20.

method?: "GET" | "HEAD" | "POST" | "DELETE" | "PUT" | "CONNECT" | "OPTIONS" | "TRACE" | "PATCH"
params?: any
responseType?: "json" | "text" | "arraybuffer" | "blob" | "stream" | "unknown"
retry?: boolean
retryConfig?: RetryConfig
signal?: any
size?: number
timeout?: number
url?: string

Methods

  • onUploadProgress(progressEvent: any): void
  • deprecated

    ignored

    Parameters

    • progressEvent: any

    Returns void

  • paramsSerializer(params: {}): string
  • Parameters

    • params: {}
      • [index: string]: string | number

    Returns string

  • validateStatus(status: number): boolean
  • Parameters

    • status: number

    Returns boolean