API 参考 / @142vip/axios / AxiosRequestConfig
接口: AxiosRequestConfig<D>
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:369
theme_extended_by
类型参数
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
allowedSocketPaths?
optionalallowedSocketPaths?:string|string[] |null
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:409
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
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
cancelToken?
optionalcancelToken?:CancelToken
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:414
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
formDataHeaderPolicy?
optionalformDataHeaderPolicy?:"legacy"|"content-only"
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:453
formSerializer?
optionalformSerializer?:FormSerializerOptions
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:428
headers?
optionalheaders?:AxiosHeaders|Partial<RawAxiosHeaders&object&object> &Partial<object&object>
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:376
http2Options?
optionalhttp2Options?:Record<string,any> &object
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:450
类型声明
sessionTimeout?
optionalsessionTimeout?:number
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
insecureHTTPParser?
optionalinsecureHTTPParser?:boolean
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:418
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
maxContentLength?
optionalmaxContentLength?:number
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:391
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
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
onUploadProgress?
optionalonUploadProgress?: (progressEvent) =>void
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:389
参数
progressEvent
AxiosProgressEvent
返回
void
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
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
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
responseType?
optionalresponseType?:ResponseType
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:385
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
transformRequest?
optionaltransformRequest?:AxiosRequestTransformer|AxiosRequestTransformer[]
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:374
transformResponse?
optionaltransformResponse?:AxiosResponseTransformer|AxiosResponseTransformer[]
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:375
transitional?
optionaltransitional?:TransitionalOptions
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:416
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
withCredentials?
optionalwithCredentials?:boolean
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:382
withXSRFToken?
optionalwithXSRFToken?:boolean| ((config) =>boolean|undefined)
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:446
xsrfCookieName?
optionalxsrfCookieName?:string
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:387
xsrfHeaderName?
optionalxsrfHeaderName?:string
定义于: node_modules/.pnpm/axios@1.17.0/node_modules/axios/index.d.ts:388