Interface StreamMethodOptions

Hierarchy

  • MethodOptions
    • StreamMethodOptions

Properties

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

Type declaration

    • <T>(options: GaxiosOptions, defaultAdapter: ((options: GaxiosOptions) => GaxiosPromise<T>)): GaxiosPromise<T>
    • Optional method to override making the actual HTTP request. Useful for writing tests.

      Type Parameters

      • T = any

      Parameters

      • options: GaxiosOptions
      • defaultAdapter: ((options: GaxiosOptions) => GaxiosPromise<T>)
          • (options: GaxiosOptions): GaxiosPromise<T>
          • Parameters

            • options: GaxiosOptions

            Returns GaxiosPromise<T>

      Returns GaxiosPromise<T>

agent?: Agent | ((parsedUrl: URL) => Agent)
baseURL?: string
baseUrl?: string
body?: any
data?: any
follow?: number
headers?: Headers
http2?: boolean
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"
onUploadProgress?: ((progressEvent: any) => void)

Type declaration

    • (progressEvent: any): void
    • Parameters

      • progressEvent: any

      Returns void

params?: any
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: "stream"
retry?: boolean
retryConfig?: RetryConfig
rootUrl?: string
signal?: AbortSignal
size?: number
timeout?: number
url?: string
userAgentDirectives?: UserAgentDirective[]
validateStatus?: ((status: number) => boolean)

Type declaration

    • (status: number): boolean
    • Parameters

      • status: number

      Returns boolean

Generated using TypeDoc