xframelib 0.4.6 → 0.4.7
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/README.md +1 -0
- package/dist/hprose/ProxyClient.d.ts +20 -3
- package/dist/index.cjs +3 -3
- package/dist/index.css +76 -76
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,11 +2,28 @@ import { ClientContext } from '@hprose/rpc-core';
|
|
|
2
2
|
export default class ProxyClient {
|
|
3
3
|
private hproseClient;
|
|
4
4
|
private hpProxyObj;
|
|
5
|
-
private
|
|
5
|
+
private defaultContext;
|
|
6
6
|
constructor(hproseUrl: string);
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
|
+
* 获得ClientContext对象
|
|
9
|
+
* @param httpHeaders Http的请求头里的参数对象
|
|
10
|
+
* @param requestParams Hprose的公共参数
|
|
11
|
+
* @returns
|
|
12
|
+
*/
|
|
13
|
+
getClientContext(httpHeaders?: {
|
|
14
|
+
[name: string]: any;
|
|
15
|
+
}, requestParams?: {
|
|
16
|
+
[name: string]: any;
|
|
17
|
+
}): ClientContext;
|
|
8
18
|
getHproseProxy(): Promise<any>;
|
|
9
|
-
|
|
19
|
+
/**
|
|
20
|
+
* hprose调用方法
|
|
21
|
+
* @param methodName
|
|
22
|
+
* @param args
|
|
23
|
+
* @param context 上下文环境对象
|
|
24
|
+
* @returns
|
|
25
|
+
*/
|
|
26
|
+
hproseInvoke(methodName: string, args?: any[] | undefined, context?: ClientContext): Promise<any>;
|
|
10
27
|
hproseInvokeContext(methodName: string, context: ClientContext | undefined, ...args: any): Promise<any>;
|
|
11
28
|
/**
|
|
12
29
|
* 编码参数方式请求
|