Static Protected axiosProtected axiosaxios实例
Protected cache缓存
Protected global全局配置
Protected canceler缓存管理器
Static useProtected initProtected setProtected fetch请求
Protected isProtected handleProtected generateProtected handleProtected registerProtected handleProtected merge合并缓存配置
Protected merge合并retry配置
Protected handleProtected handleProtected useProtected handleProtected beforeProtected beforeProtected afterProtected generateProtected exec执行请求,重试会调用该方法
json类返回值类型
模板方法,请求入口,重试不会执行该方法
Optional customConfig: DynamicCustomConfig<CC, RC>非json返回值类型
模板方法,请求入口,重试不会执行该方法
Optional customConfig: DynamicCustomConfig<CC, RC>Protected handle简单工厂:生成get post delete等method
Optional handler: ((configs: Configs<CustomConfig>) => void)Optional customConfig: DynamicCustomConfig<CC, RC>简化版请求方法工厂 忽略data还是params;url前缀;只改axios的url,data/params,method,及自定义配置
本质上跟methodFactory是一样的
Optional customConfig: DynamicCustomConfig<CC, RC>Protected axios获取axios,并判断是否已设置了axios
Protected interceptors获取拦截器
Generated using TypeDoc
axios请求封装类,继承自RequestTemplate
使用模板方法模式处理axios请求, 具体类可实现protected的方法替换掉原有方法 自定义配置可继承CustomConfig实现