Interface GaxiosOptions (6.4.0)

Request options that are used to form the request.

Package

gaxios

Properties

adapter

  adapter 
 ?: 
  
< T 
  
 = 
  
 any 
> ( 
 options 
 : 
  
 GaxiosOptions 
 , 
  
 defaultAdapter 
 : 
  
 ( 
 options 
 : 
  
 GaxiosOptions 
 ) 
  
 = 
>  
 GaxiosPromise<T> 
 ) 
  
 = 
>  
 GaxiosPromise<T> 
 ; 
 

Optional method to override making the actual HTTP request. Useful for writing tests.

agent

  agent 
 ?: 
  
 Agent 
  
 | 
  
 (( 
 parsedUrl 
 : 
  
 URL 
 ) 
  
 = 
>  
 Agent 
 ); 
 

baseUrl

  baseUrl 
 ?: 
  
 string 
 ; 
 

baseURL

  baseURL 
 ?: 
  
 string 
  
 | 
  
 URL 
 ; 
 

body

  body 
 ?: 
  
 any 
 ; 
 

cert

  cert 
 ?: 
  
 string 
 ; 
 

data

  data 
 ?: 
  
 any 
 ; 
 

errorRedactor

  errorRedactor 
 ?: 
  
 typeof 
  
 defaultErrorRedactor 
  
 | 
  
 false 
 ; 
 

An experimental error redactor.

Remarks

This does not replace the requirement for an active Data Loss Prevention (DLP) provider. For DLP suggestions, see: - https://cloud.google.com/sensitive-data-protection/docs/redacting-sensitive-data#dlp_deidentify_replace_infotype-nodejs - https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference#credentials_and_secrets

fetchImplementation

  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

  follow 
 ?: 
  
 number 
 ; 
 

headers

  headers 
 ?: 
  
 Headers 
 ; 
 

key

  key 
 ?: 
  
 string 
 ; 
 

maxContentLength

  maxContentLength 
 ?: 
  
 number 
 ; 
 

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

maxRedirects

  maxRedirects 
 ?: 
  
 number 
 ; 
 

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

method

  method 
 ?: 
  
 'GET' 
  
 | 
  
 'HEAD' 
  
 | 
  
 'POST' 
  
 | 
  
 'DELETE' 
  
 | 
  
 'PUT' 
  
 | 
  
 'CONNECT' 
  
 | 
  
 'OPTIONS' 
  
 | 
  
 'TRACE' 
  
 | 
  
 'PATCH' 
 ; 
 

multipart

  multipart 
 ?: 
  
 GaxiosMultipartOptions 
 []; 
 

onUploadProgress

  onUploadProgress 
 ?: 
  
 ( 
 progressEvent 
 : 
  
 any 
 ) 
  
 = 
>  
 void 
 ; 
 

params

  params 
 ?: 
  
 any 
 ; 
 

paramsSerializer

  paramsSerializer 
 ?: 
  
 ( 
 params 
 : 
  
 { 
  
 [ 
 index 
 : 
  
 string 
 ] 
 : 
  
 string 
  
 | 
  
 number 
 ; 
  
 }) 
  
 = 
>  
 string 
 ; 
 

responseType

  responseType 
 ?: 
  
 'arraybuffer' 
  
 | 
  
 'blob' 
  
 | 
  
 'json' 
  
 | 
  
 'text' 
  
 | 
  
 'stream' 
  
 | 
  
 'unknown' 
 ; 
 

retry

  retry 
 ?: 
  
 boolean 
 ; 
 

retryConfig

  retryConfig 
 ?: 
  
 RetryConfig 
 ; 
 

signal

  signal 
 ?: 
  
 any 
 ; 
 

size

  size 
 ?: 
  
 number 
 ; 
 

timeout

  timeout 
 ?: 
  
 number 
 ; 
 

url

  url 
 ?: 
  
 string 
  
 | 
  
 URL 
 ; 
 

validateStatus

  validateStatus 
 ?: 
  
 ( 
 status 
 : 
  
 number 
 ) 
  
 = 
>  
 boolean 
 ; 
 
Design a Mobile Site
View Site in Mobile | Classic
Share by: