1.0.1 • Published 2 years ago

@hyc941129/axios-util v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

@hyc941129/axios-util

Quick Setup

  1. Add @hyc941129/axios-util dependency to your project
# Using pnpm
pnpm add @hyc941129/axios-util

# Using yarn
yarn add @hyc941129/axios-util

# Using npm
npm install --save @hyc941129/axios-util
  1. Use @hyc941129/axios-util in your project
import WwHttp from '@hyc941129/axios-util'
import type { CustomConfig, MessageBox } from '@hyc941129/axios-util'

const customConfig: CustomConfig = {
  baseURL: '/api',
  timeout: 50000
}
cosnt http= new WwHttp(customConfig)

http.get('/aaa/bbb/ccc',{a:1,b:2})
http.post('/aaa/bbb/ccc',{a:1,b:2})
http.postFrom('/aaa/bbb/ccc',{a:1,b:2})
http.put('/aaa/bbb/ccc',{a:1,b:2})
http.delete('/aaa/bbb/ccc',{a:1,b:2})
1.0.1

2 years ago

0.0.2

2 years ago