Commit Graph

70 Commits

Author SHA1 Message Date
nanoric
c50c31a6bd [Mod] sendRequest改名为sendPacket
和onPacket对应。
2018-10-15 04:37:55 -04:00
nanoric
4d7c3bf417 [Add] WebSocketClient:增加onDisconnected 2018-10-15 04:35:55 -04:00
nanoric
a55246eb77 [Mod] WebSocketClient.onMessage改名为onPacket,以免和正常WebSocket的onMessage搞混。 2018-10-15 04:30:06 -04:00
nanoric
a3129a8007 [Mod] sendReq改名为sendRequest(同步),addReq改名为addRequest(异步) 2018-10-15 03:12:05 -04:00
nanoric
6e0e1c116b [Mod] 将RestClient和WebClient移动到api文件夹中,并修改import方式 2018-10-11 22:53:48 -04:00
nanoric
b34dcf6a73 [Mod] Test使用with promise.catch():语法 2018-10-10 22:27:02 -04:00
nanoric
3f8e5f1099 [Add] Promise增加with self.catch():语法支持 2018-10-10 22:26:39 -04:00
nanoric
ab116d8f97 [Fix] 修复Promise抛出单个异常时get无法获取到正确的异常的错误 2018-10-10 22:10:15 -04:00
nanoric
6e71c59c06 [Mod] onFailed只接收两个参数,原来的data参数可以从req.response.raw读出 2018-10-10 22:09:20 -04:00
nanoric
e6f7781a47 [Mod] HttpClient改名为RestClient 2018-10-10 05:36:14 -04:00
nanoric
486e6055e6 [Mod] HttClient:修改对应的测试
[Del] 删除了HeadersAuthenticateHttpClient,因为不再需要了

该版本的测试可以通过
2018-10-10 03:59:13 -04:00
nanoric
7e56c3fd49 [Mod] Promise:增加对traceback的支持 2018-10-09 06:06:41 -04:00
nanoric
f3f2598c44 [Mod] 改名:将restful改名为network 2018-10-09 06:05:50 -04:00
nanoric
7d65170e53 [Mod] restful包改名为network
[Mod] RestfulClient改名为HttpClient
2018-10-07 22:31:34 -04:00
nanoric
8dcc785fd3 [Mod] 修改tests的引用结构,便于从其他项目引用 2018-10-07 04:43:58 -04:00
nanoric
c38a9fcabd [Mod] 修正RestfulClient和WebSocketClient的单元测试 2018-10-07 04:20:14 -04:00
nanoric
af71e57732 [Fix] 修正一个Bug:调用tests.Promise.set_exception后无法正常抛出异常 2018-10-07 03:42:01 -04:00
nanoric
142a40652d [Mod] WebsocketClient改名为WebSocketClient 2018-10-07 03:38:55 -04:00
nanoric
4af7be3e41 [Add] 增加WebsocketClient的单元测试 2018-10-07 03:35:12 -04:00
nanoric
6bf7837055 [Add] 增加RestfulClient的单元测试 2018-10-07 03:34:42 -04:00