4.4.1 • Published 10 months ago

lite-ts-ajax v4.4.1

Weekly downloads
-
License
GPL-3.0
Repository
-
Last release
10 months 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

10 months ago

3.4.1

1 year ago

1.4.1

1 year ago

1.3.1

1 year ago

1.2.1

1 year ago

1.1.1

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago