Skip to content

🔥🔥🔥 Promise based HTTP client for the browser and node.js.

License

Notifications You must be signed in to change notification settings

yoolu-cn/axios-core

Repository files navigation

ts-axios

Typescript training project to improve programming ability

开发文档

ts-axios开发文档

不懂点

接口扩展 -> 扩展接口 拦截器实现 -> 链式调用实现

Features

  • 在浏览器端使用 XMLHttpRequest 对象通讯
  • 支持 Promise API
  • 支持请求和响应的拦截器
  • 支持请求数据和响应数据的转换
  • 支持请求的取消
  • JSON 数据的自动转换
  • 客户端防止 XSS

Usage

const axios = require('axios')

axios({
  method: 'post',
  url: '/user/12345',
  data: {
    firstName: 'Yee',
    lastName: 'Huang'
  }
})

About

🔥🔥🔥 Promise based HTTP client for the browser and node.js.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published