@allkit/http-client 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/{skill → skills}/SKILL.md +3 -3
- /package/{skill → skills}/examples/api.ts +0 -0
- /package/{skill → skills}/references/delete.md +0 -0
- /package/{skill → skills}/references/get.md +0 -0
- /package/{skill → skills}/references/patch.md +0 -0
- /package/{skill → skills}/references/post.md +0 -0
- /package/{skill → skills}/references/put.md +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: http-client
|
|
3
|
-
description: HTTP
|
|
3
|
+
description: HTTP 客户端封装,支持小程序,web更多平台,统一处理 API 请求、响应和错误 / HTTP client wrapper for handling API requests
|
|
4
4
|
author: allkit
|
|
5
5
|
category: network
|
|
6
6
|
---
|
|
@@ -30,8 +30,8 @@ pnpm add @allkit/http-client
|
|
|
30
30
|
```ts
|
|
31
31
|
import Http from '@allkit/http-client'
|
|
32
32
|
|
|
33
|
-
const res = await Http.
|
|
33
|
+
const res = await Http.post({
|
|
34
34
|
url: '/api/user/list',
|
|
35
|
-
|
|
35
|
+
data: { page: 1, pageSize: 10 }
|
|
36
36
|
})
|
|
37
37
|
```
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|