Promise based HTTP client for the browser and node.js(github上链接:https://github.com/axios/axios)。
Features
- Make XMLHttpRequests from the browser
- Make http requests from node.js
- Supports the Promise API
- Intercept request and response
- Transform request and response data
- Cancel requests
- Automatic transforms for JSON data
- Client side support for protecting against XSRF
特征
- 从浏览器中创建 XMLHttpRequest
- 从 node.js 发出 http 请求
- 支持 Promise API
- 拦截请求和响应
- 转换请求和响应数据
- 取消请求
自动转换JSON数据
客户端支持防止 CSRF/XSRF
兼容性:
到 IE8 及以上
网友评论