4.4.1 • Published 2 years ago

lite-ts-ajax v4.4.1

Weekly downloads
-
License
GPL-3.0
Repository
-
Last release
2 years ago

Version

安装

npm install lite-ts-ajax

使用

import { AjaxRpc } from 'lite-ts-ajax';
import { HttpMethod } from 'lite-ts-rpc';

const baseUrl = 'http://xxx.com';
const rpc = new AjaxRpc(baseUrl);
// 抛异常调用
await rpc.call({
    httpMethod: HttpMethod.get,
    route: '/app/api',
    body: { },
    header:{}
});
// 不抛异常调用
const resp = await rpc.callWithoutThrow({
    httpMethod: HttpMethod.post,
    route: '/app/api',
    body: { },
    header:{}
});
4.4.1

2 years ago

3.4.1

2 years ago

1.4.1

2 years ago

1.3.1

2 years ago

1.2.1

2 years ago

1.1.1

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago