Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

  • T = any

  • D = any

Hierarchy

  • Request

Index

Constructors

Protected constructor

Properties

Protected CancelToken

CancelToken: CancelTokenStatic

Protected CancelTokenSource

CancelTokenSource: CancelTokenSource

config

config: RequestConfig<any>

Readonly hooks

hooks: { createAxios: SyncWaterfallHook<[AxiosInstance, Request<any, any>], UnsetAdditionalOptions>; response: SyncWaterfallHook<[Response<any, any>, RequestConfig<any>, Request<any, any>], UnsetAdditionalOptions>; send: AsyncSeriesWaterfallHook<[RequestConfig<any>, AxiosInstance, Request<any, any>], UnsetAdditionalOptions> } = ...

Type declaration

  • createAxios: SyncWaterfallHook<[AxiosInstance, Request<any, any>], UnsetAdditionalOptions>
  • response: SyncWaterfallHook<[Response<any, any>, RequestConfig<any>, Request<any, any>], UnsetAdditionalOptions>
  • send: AsyncSeriesWaterfallHook<[RequestConfig<any>, AxiosInstance, Request<any, any>], UnsetAdditionalOptions>

Accessors

cancelToken

  • get cancelToken(): CancelToken

Methods

Accept

  • Accept(mime: string | number): Request<T, D>

ContentType

  • ContentType(mime: string | number): Request<T, D>

IfNoneMatch

  • IfNoneMatch(etag: string): Request<T, D>

authorization

  • authorization(key: "Basic" | "Bearer", value: string): Request<T, D>

basic

  • basic(username: string, password: string): Request<T, D>

bearer

  • bearer(token: string): Request<T, D>

cancel

  • cancel(message: string): Request<T, D>

createAxios

  • createAxios(): AxiosInstance

header

mergeConfig

send

Static create