0.0.5 • Published 7 months ago

my-fetch-plus v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

MyFetchPlus

一个fetch的现代化封装

https://fetch.plus

基本功能

  • 以es6 class封装fetch
  • 自动格式化URL QueryString
  • 根据responseType自动格式化Data
  • 超时取消请求
  • 返回值遵循error first 原则

基本使用

安装

npm i my-fetch-plus --save

or

yarn add my-fetch-plus

引入

可以通过import或require引入

import FetchPlus from 'my-fetch-plus'
const http = new FetchPlus()
http.get('xxxx')

TODO

  • 基本请求封装
  • 只发送简单请求
  • 单元测试
  • 失败重试

参考资料

0.0.3

7 months ago

0.0.5

7 months ago

0.0.4

7 months ago

0.0.2

1 year ago

0.0.1

1 year ago