kim-axios
v1.8.4
Published
用 typescript 实现 axios 浏览器部分,完善的 demo 与单元测试
Downloads
69
Readme
项目介绍
用 typescript 实现 axios 浏览器部分,完善的 demo 与单元测试
ts-axios
- 采用 Promise API
- 请求和响应配置化
- 支持请求和响应数据自定义拦截器
- 支持外部取消请求
- 支持跨域请求携带 cookie
- 支持客户端 XSRF 防御
- 支持 upload/download 进度监控
- 支持 http authorization
- 自定义合法状态码
- 自定义参数序列化
- 支持配置 baseURL
- axios.all axios.spread axios.getUri
所有 axios 官方库浏览器端功能已实现
单元测试
- helpers 模块测试用例编写完毕