An open API service indexing awesome lists of open source software.

https://github.com/varletjs/axle

Progressive request tool based on axios.
https://github.com/varletjs/axle

axios axle composition-api http request typescript varlet vue3

Last synced: 15 days ago
JSON representation

Progressive request tool based on axios.

Awesome Lists containing this project

README

          





AXLE


Progressive request tool based on axios.



Documentation |
中文介绍



version
stars
vue
license


---

### Intro

Progressive request tool based on [axios](https://axios-http.com/). It does not destroy the original abilities of axios, and helps you process requests more easily.

### Features

- πŸš€ Β  Normalized request functions with expanded methods for different response types
- πŸ’ͺ Β  Vue Composition API support with loading status, error status, upload/download progress, lifecycle, and more
- πŸ› οΈ Β  Built-in practical request/response interceptors
- πŸ’‘ Β  Enhanced API definition with `createApi`
- 🌍   Full compatibility with axios configuration

### Install

```shell
# npm
npm i @varlet/axle -S

# yarn
yarn add @varlet/axle

# pnpm
pnpm add @varlet/axle
```

### Basic Usage

```js
import { createAxle } from '@varlet/axle'

const axle = createAxle(/** @see https://axios-http.com **/)

axle.get('/url', { current: 1, pageSize: 10 }, { headers: {} })
axle.post('/url', { name: 'Axle' }, { headers: {} })
```

### Documentation

For full documentation, please visit the [documentation site](https://axle.varletjs.org).