API 参考 / @142vip/axios / InternalAxiosRequestConfig
接口: InternalAxiosRequestConfig<D>
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:460
theme_extends
类型参数
D
D = any
属性
adapter?
optionaladapter?:AxiosAdapterConfig|AxiosAdapterConfig[]
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:383
继承自
allowAbsoluteUrls?
optionalallowAbsoluteUrls?:boolean
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:373
继承自
AxiosRequestConfig.allowAbsoluteUrls
allowedSocketPaths?
optionalallowedSocketPaths?:string|string[] |null
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:409
继承自
AxiosRequestConfig.allowedSocketPaths
auth?
optionalauth?:AxiosBasicCredentials
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:384
继承自
axios-retry?
optionalaxios-retry?:IAxiosRetryConfigExtended
定义于: node_modules/.pnpm/axios-retry@4.5.0_axios@1.17.0/node_modules/axios-retry/dist/cjs/index.d.ts:69
继承自
AxiosRequestConfig.axios-retry
baseURL?
optionalbaseURL?:string
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:372
继承自
beforeRedirect?
optionalbeforeRedirect?: (options,responseDetails,requestDetails) =>void
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:396
参数
options
Record<string, any>
responseDetails
headers
Record<string, string>
statusCode
HttpStatusCode
requestDetails
headers
Record<string, string>
method
string
url
string
返回
void
继承自
AxiosRequestConfig.beforeRedirect
cancelToken?
optionalcancelToken?:CancelToken
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:414
继承自
AxiosRequestConfig.cancelToken
data?
optionaldata?:D
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:379
继承自
decompress?
optionaldecompress?:boolean
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:415
继承自
env?
optionalenv?:object
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:419
fetch?
optionalfetch?: (input,init?) =>Promise<Response>
参数
input
string | URL | Request
init?
RequestInit
返回
Promise<Response>
FormData?
optionalFormData?: (...args) =>object
参数
args
...any[]
返回
object
Request?
optionalRequest?: (input,init?) =>Request
参数
input
string | URL | Request
init?
RequestInit
返回
Request
Response?
optionalResponse?: (body?,init?) =>Response
参数
body?
string | Blob | ArrayBuffer | FormData | URLSearchParams | ArrayBufferView<ArrayBufferLike> | null
init?
ResponseInit
返回
Response
继承自
family?
optionalfamily?:AddressFamily
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:429
继承自
fetchOptions?
optionalfetchOptions?:Omit<RequestInit,"headers"|"method"|"signal"|"body"> |Record<string,any>
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:448
继承自
AxiosRequestConfig.fetchOptions
formDataHeaderPolicy?
optionalformDataHeaderPolicy?:"legacy"|"content-only"
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:453
继承自
AxiosRequestConfig.formDataHeaderPolicy
formSerializer?
optionalformSerializer?:FormSerializerOptions
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:428
继承自
AxiosRequestConfig.formSerializer
headers
headers:
AxiosRequestHeaders
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:461
重写了
http2Options?
optionalhttp2Options?:Record<string,any> &object
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:450
类型声明
sessionTimeout?
optionalsessionTimeout?:number
继承自
AxiosRequestConfig.http2Options
httpAgent?
optionalhttpAgent?:any
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:411
继承自
httpsAgent?
optionalhttpsAgent?:any
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:412
继承自
httpVersion?
optionalhttpVersion?:2|1
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:449
继承自
AxiosRequestConfig.httpVersion
insecureHTTPParser?
optionalinsecureHTTPParser?:boolean
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:418
继承自
AxiosRequestConfig.insecureHTTPParser
lookup?
optionallookup?: ((hostname,options,cb) =>void) | ((hostname,options) =>Promise<LookupAddress| [LookupAddressEntry|LookupAddressEntry[],AddressFamily]>)
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:430
继承自
maxBodyLength?
optionalmaxBodyLength?:number
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:393
继承自
AxiosRequestConfig.maxBodyLength
maxContentLength?
optionalmaxContentLength?:number
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:391
继承自
AxiosRequestConfig.maxContentLength
maxRate?
optionalmaxRate?:number| [number,number]
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:395
继承自
maxRedirects?
optionalmaxRedirects?:number
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:394
继承自
AxiosRequestConfig.maxRedirects
method?
optionalmethod?:StringLiteralsOrString<Method>
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:371
继承自
onDownloadProgress?
optionalonDownloadProgress?: (progressEvent) =>void
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:390
参数
progressEvent
AxiosProgressEvent
返回
void
继承自
AxiosRequestConfig.onDownloadProgress
onUploadProgress?
optionalonUploadProgress?: (progressEvent) =>void
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:389
参数
progressEvent
AxiosProgressEvent
返回
void
继承自
AxiosRequestConfig.onUploadProgress
params?
optionalparams?:any
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:377
继承自
paramsSerializer?
optionalparamsSerializer?:ParamsSerializerOptions|CustomParamsSerializer
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:378
继承自
AxiosRequestConfig.paramsSerializer
parseReviver?
optionalparseReviver?: (this,key,value,context?) =>any
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:447
参数
this
any
key
string
value
any
context?
source?
string
返回
any
继承自
AxiosRequestConfig.parseReviver
proxy?
optionalproxy?:false|AxiosProxyConfig
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:413
继承自
redact?
optionalredact?:string[]
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:454
继承自
responseEncoding?
optionalresponseEncoding?:StringLiteralsOrString<responseEncoding>
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:386
继承自
AxiosRequestConfig.responseEncoding
responseType?
optionalresponseType?:ResponseType
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:385
继承自
AxiosRequestConfig.responseType
signal?
optionalsignal?:GenericAbortSignal
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:417
继承自
socketPath?
optionalsocketPath?:string|null
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:408
继承自
timeout?
optionaltimeout?:number
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:380
继承自
timeoutErrorMessage?
optionaltimeoutErrorMessage?:string
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:381
继承自
AxiosRequestConfig.timeoutErrorMessage
transformRequest?
optionaltransformRequest?:AxiosRequestTransformer|AxiosRequestTransformer[]
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:374
继承自
AxiosRequestConfig.transformRequest
transformResponse?
optionaltransformResponse?:AxiosResponseTransformer|AxiosResponseTransformer[]
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:375
继承自
AxiosRequestConfig.transformResponse
transitional?
optionaltransitional?:TransitionalOptions
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:416
继承自
AxiosRequestConfig.transitional
transport?
optionaltransport?:any
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:410
继承自
url?
optionalurl?:string
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:370
继承自
validateStatus?
optionalvalidateStatus?: ((status) =>boolean) |null
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:392
继承自
AxiosRequestConfig.validateStatus
withCredentials?
optionalwithCredentials?:boolean
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:382
继承自
AxiosRequestConfig.withCredentials
withXSRFToken?
optionalwithXSRFToken?:boolean| ((config) =>boolean|undefined)
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:446
继承自
AxiosRequestConfig.withXSRFToken
xsrfCookieName?
optionalxsrfCookieName?:string
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:387
继承自
AxiosRequestConfig.xsrfCookieName
xsrfHeaderName?
optionalxsrfHeaderName?:string
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:388