@nweb/http
v0.0.1
Published
用于vweb环境下的http操作
Readme
说明
用于vweb环境下的http操作
安装
npm install @vweb/http使用
可参考 test 目录下的代码
服务注册方式支持如下两种:
- 使用
await this.http.register("oms", ["https://open.zhiper.com","https://open.test.zhiper.com"])手动注册 - 配置
registry注册项信息自动注册;
服务的调用方式支持如下两种:
- 使用
@HttpClient结合@HttpEndpoint注解自动注册到上下文 通过调用对象调用 - 使用
this.http.get("oms")方式手动调用
具体使用方式可结合需要的场景自行选择
