API 参考 / @142vip/data-source / HttpApiOptions
接口: HttpApiOptions
定义于: packages/data-source/src/core/apis/vip-http-api.ts:6
theme_extends
AxiosRequestConfig
属性
adapter?
optionaladapter:AxiosAdapterConfig|AxiosAdapterConfig[]
定义于: node_modules/.pnpm/axios@1.11.0/node_modules/axios/index.d.ts:332
继承自
AxiosRequestConfig.adapter
allowAbsoluteUrls?
optionalallowAbsoluteUrls:boolean
定义于: node_modules/.pnpm/axios@1.11.0/node_modules/axios/index.d.ts:322
继承自
AxiosRequestConfig.allowAbsoluteUrls
auth?
optionalauth:AxiosBasicCredentials
定义于: node_modules/.pnpm/axios@1.11.0/node_modules/axios/index.d.ts:333
继承自
AxiosRequestConfig.auth
baseURL?
optionalbaseURL:string
定义于: node_modules/.pnpm/axios@1.11.0/node_modules/axios/index.d.ts:321
继承自
AxiosRequestConfig.baseURL
beforeRedirect()?
optionalbeforeRedirect: (options,responseDetails) =>void
定义于: node_modules/.pnpm/axios@1.11.0/node_modules/axios/index.d.ts:345
参数
options
Record<string, any>
responseDetails
headers
Record<string, string>
statusCode
HttpStatusCode
返回
void
继承自
AxiosRequestConfig.beforeRedirect
cancelToken?
optionalcancelToken:CancelToken
定义于: node_modules/.pnpm/axios@1.11.0/node_modules/axios/index.d.ts:351
继承自
AxiosRequestConfig.cancelToken
data?
optionaldata:any
定义于: node_modules/.pnpm/axios@1.11.0/node_modules/axios/index.d.ts:328
继承自
AxiosRequestConfig.data
decompress?
optionaldecompress:boolean
定义于: node_modules/.pnpm/axios@1.11.0/node_modules/axios/index.d.ts:352
继承自
AxiosRequestConfig.decompress
env?
optionalenv:object
定义于: node_modules/.pnpm/axios@1.11.0/node_modules/axios/index.d.ts:356
FormData()?
optionalFormData: (...args) =>object
参数
args
...any[]
返回
object
继承自
AxiosRequestConfig.env
family?
optionalfamily:AddressFamily
定义于: node_modules/.pnpm/axios@1.11.0/node_modules/axios/index.d.ts:360
继承自
AxiosRequestConfig.family
fetchOptions?
optionalfetchOptions:Record<string,any> |Omit<RequestInit,"body"|"headers"|"method"|"signal">
定义于: node_modules/.pnpm/axios@1.11.0/node_modules/axios/index.d.ts:364
继承自
AxiosRequestConfig.fetchOptions
formSerializer?
optionalformSerializer:FormSerializerOptions
定义于: node_modules/.pnpm/axios@1.11.0/node_modules/axios/index.d.ts:359
继承自
AxiosRequestConfig.formSerializer
headers?
optionalheaders:AxiosHeaders|Partial<RawAxiosHeaders&object&object> &Partial<object&object>
定义于: node_modules/.pnpm/axios@1.11.0/node_modules/axios/index.d.ts:325
继承自
AxiosRequestConfig.headers
httpAgent?
optionalhttpAgent:any
定义于: node_modules/.pnpm/axios@1.11.0/node_modules/axios/index.d.ts:348
继承自
AxiosRequestConfig.httpAgent
httpsAgent?
optionalhttpsAgent:any
定义于: node_modules/.pnpm/axios@1.11.0/node_modules/axios/index.d.ts:349
继承自
AxiosRequestConfig.httpsAgent
insecureHTTPParser?
optionalinsecureHTTPParser:boolean
定义于: node_modules/.pnpm/axios@1.11.0/node_modules/axios/index.d.ts:355
继承自
AxiosRequestConfig.insecureHTTPParser
lookup?
optionallookup: (hostname,options,cb) =>void| (hostname,options) =>Promise<LookupAddress| [LookupAddressEntry|LookupAddressEntry[],AddressFamily]>
定义于: node_modules/.pnpm/axios@1.11.0/node_modules/axios/index.d.ts:361
继承自
AxiosRequestConfig.lookup
maxBodyLength?
optionalmaxBodyLength:number
定义于: node_modules/.pnpm/axios@1.11.0/node_modules/axios/index.d.ts:342
继承自
AxiosRequestConfig.maxBodyLength
maxContentLength?
optionalmaxContentLength:number
定义于: node_modules/.pnpm/axios@1.11.0/node_modules/axios/index.d.ts:340
继承自
AxiosRequestConfig.maxContentLength
maxRate?
optionalmaxRate:number| [number,number]
定义于: node_modules/.pnpm/axios@1.11.0/node_modules/axios/index.d.ts:344
继承自
AxiosRequestConfig.maxRate
maxRedirects?
optionalmaxRedirects:number
定义于: node_modules/.pnpm/axios@1.11.0/node_modules/axios/index.d.ts:343
继承自
AxiosRequestConfig.maxRedirects
method?
optionalmethod:string
定义于: node_modules/.pnpm/axios@1.11.0/node_modules/axios/index.d.ts:320
继承自
AxiosRequestConfig.method
onDownloadProgress()?
optionalonDownloadProgress: (progressEvent) =>void
定义于: node_modules/.pnpm/axios@1.11.0/node_modules/axios/index.d.ts:339
参数
progressEvent
AxiosProgressEvent
返回
void
继承自
AxiosRequestConfig.onDownloadProgress
onUploadProgress()?
optionalonUploadProgress: (progressEvent) =>void
定义于: node_modules/.pnpm/axios@1.11.0/node_modules/axios/index.d.ts:338
参数
progressEvent
AxiosProgressEvent
返回
void
继承自
AxiosRequestConfig.onUploadProgress
params?
optionalparams:any
定义于: node_modules/.pnpm/axios@1.11.0/node_modules/axios/index.d.ts:326
继承自
AxiosRequestConfig.params
paramsSerializer?
optionalparamsSerializer:ParamsSerializerOptions|CustomParamsSerializer
定义于: node_modules/.pnpm/axios@1.11.0/node_modules/axios/index.d.ts:327
继承自
AxiosRequestConfig.paramsSerializer
proxy?
optionalproxy:false|AxiosProxyConfig
定义于: node_modules/.pnpm/axios@1.11.0/node_modules/axios/index.d.ts:350
继承自
AxiosRequestConfig.proxy
responseEncoding?
optionalresponseEncoding:string
定义于: node_modules/.pnpm/axios@1.11.0/node_modules/axios/index.d.ts:335
继承自
AxiosRequestConfig.responseEncoding
responseType?
optionalresponseType:ResponseType
定义于: node_modules/.pnpm/axios@1.11.0/node_modules/axios/index.d.ts:334
继承自
AxiosRequestConfig.responseType
signal?
optionalsignal:GenericAbortSignal
定义于: node_modules/.pnpm/axios@1.11.0/node_modules/axios/index.d.ts:354
继承自
AxiosRequestConfig.signal
socketPath?
optionalsocketPath:null|string
定义于: node_modules/.pnpm/axios@1.11.0/node_modules/axios/index.d.ts:346
继承自
AxiosRequestConfig.socketPath
timeout?
optionaltimeout:number
定义于: node_modules/.pnpm/axios@1.11.0/node_modules/axios/index.d.ts:329
继承自
AxiosRequestConfig.timeout
timeoutErrorMessage?
optionaltimeoutErrorMessage:string
定义于: node_modules/.pnpm/axios@1.11.0/node_modules/axios/index.d.ts:330
继承自
AxiosRequestConfig.timeoutErrorMessage
transformRequest?
optionaltransformRequest:AxiosRequestTransformer|AxiosRequestTransformer[]
定义于: node_modules/.pnpm/axios@1.11.0/node_modules/axios/index.d.ts:323
继承自
AxiosRequestConfig.transformRequest
transformResponse?
optionaltransformResponse:AxiosResponseTransformer|AxiosResponseTransformer[]
定义于: node_modules/.pnpm/axios@1.11.0/node_modules/axios/index.d.ts:324
继承自
AxiosRequestConfig.transformResponse
transitional?
optionaltransitional:TransitionalOptions
定义于: node_modules/.pnpm/axios@1.11.0/node_modules/axios/index.d.ts:353
继承自
AxiosRequestConfig.transitional
transport?
optionaltransport:any
定义于: node_modules/.pnpm/axios@1.11.0/node_modules/axios/index.d.ts:347
继承自
AxiosRequestConfig.transport
url?
optionalurl:string
定义于: node_modules/.pnpm/axios@1.11.0/node_modules/axios/index.d.ts:319
继承自
AxiosRequestConfig.url
validateStatus?
optionalvalidateStatus:null| (status) =>boolean
定义于: node_modules/.pnpm/axios@1.11.0/node_modules/axios/index.d.ts:341
继承自
AxiosRequestConfig.validateStatus
withCredentials?
optionalwithCredentials:boolean
定义于: node_modules/.pnpm/axios@1.11.0/node_modules/axios/index.d.ts:331
继承自
AxiosRequestConfig.withCredentials
withXSRFToken?
optionalwithXSRFToken:boolean| (config) =>undefined|boolean
定义于: node_modules/.pnpm/axios@1.11.0/node_modules/axios/index.d.ts:363
继承自
AxiosRequestConfig.withXSRFToken
xsrfCookieName?
optionalxsrfCookieName:string
定义于: node_modules/.pnpm/axios@1.11.0/node_modules/axios/index.d.ts:336
继承自
AxiosRequestConfig.xsrfCookieName
xsrfHeaderName?
optionalxsrfHeaderName:string
定义于: node_modules/.pnpm/axios@1.11.0/node_modules/axios/index.d.ts:337
继承自
AxiosRequestConfig.xsrfHeaderName
