1.0.0 • Published 4 years ago
wbaxios v1.0.0
use it you can cancel your axios request when you want to stop request
🏠 Homepage
Install
npm install wbaxios --save-dev
Start
npm run start
Import
import wbAxios from 'wbaxios';
Use
init(baseUrl, headerConfig)
wbAxios.init('https://www.fastmock.site/mock/654a6d890e9e4da4fb45f4a2a1180afb/testMock', {'x-token': 'this is a token'});
get()
wbAxios.get('/test');
cancel()
wbAxios.cancel('/test');
Demo
Author
👤 Bowang816
- Website: https://www.wangboweb.site
- Github: @webbx
🤝 Contributing
Contributions, issues and feature requests are welcome!Feel free to check issues page. You can also take a look at the contributing guide.
Show your support
Give a ⭐️ if this project helped you!
📝 License
Copyright © 2020 Bowang816. This project is ISC licensed.
This README was generated with ❤️ by readme-md-generator
1.0.0
4 years ago