Commit Graph

589 Commits

Author SHA1 Message Date
Zahary Karadjov 642fdd591f fix the package structure to make Nimble happy 2018-07-20 19:34:10 +03:00
coffeepots d7b95877fc
Merge pull request #26 from jangko/fix18
fixes #18, rpc macro now can accept multiple variables of one type
2018-07-18 21:17:20 +01:00
andri lim be5107041b add comments to recently added codes 2018-07-17 10:39:22 +07:00
andri lim 4aedb214b6 fixes #18, rpc macro now can accept multiple variables of one type 2018-07-17 10:06:29 +07:00
coffeepots a109e7a1f8
Merge pull request #25 from status-im/httprpc
HTTP-JSONRPC
2018-07-16 09:17:24 +01:00
coffeepots db7101c08d Revert "Include httputils"
This reverts commit c3647e2804.
2018-07-15 15:48:28 +01:00
coffeepots c3647e2804 Include httputils 2018-07-14 11:51:20 +01:00
cheatfate 19b3b3aa6d Cosmetic changes. 2018-07-14 11:25:27 +03:00
cheatfate 989c999dc7 Fix suite name in testhttp. 2018-07-14 11:01:05 +03:00
cheatfate 0942b0387d Add RpcHttpServer.
Add RpcHttpClient.
2018-07-14 10:51:54 +03:00
coffeepots 24ee0c9505 Add missing title markdown 2018-07-13 17:32:06 +01:00
coffeepots 2b1c138ad2 Details on marshalling support 2018-07-13 17:27:28 +01:00
coffeepots 3c0bdf8edb Formatting updates 2018-07-13 16:47:17 +01:00
coffeepots 8b42296553 Cosmetic spacing update 2018-07-13 16:36:06 +01:00
coffeepots 591b69c3f7 Update documentation 2018-07-13 16:34:50 +01:00
coffeepots e29850f1d5
Merge pull request #24 from status-im/AgnosticClient
Agnostic client
2018-07-12 19:15:20 +01:00
coffeepots 1ca1847600 Make client usable with different transports 2018-07-12 18:36:40 +01:00
coffeepots 6466b7e778 Update tests with newRpcSocketClient 2018-07-12 14:08:43 +01:00
coffeepots 8d3473e75b Renamed newStreamClient to newSocketClient, added a check for nil transport 2018-07-12 14:06:35 +01:00
coffeepots e3a7ffd121 Merge rpcsocket into rpcserver 2018-07-12 09:43:44 +01:00
coffeepots 3da2738e27 Fix gcsafe error in debug, use getOrDefault instead of {} 2018-07-12 09:23:38 +01:00
coffeepots 49085bbd28 Simplify error trapping 2018-07-11 21:49:08 +01:00
coffeepots 2ed141b0de Removed error processing in processClient, this is already in router 2018-07-11 19:17:21 +01:00
coffeepots f09aeffd65 Fix incompatibility between returning JSON errors and fixed types 2018-07-11 19:16:11 +01:00
coffeepots 3b8e736f35 Wrap RPC exceptions in JSON 2018-07-11 18:27:50 +01:00
Eugene Kabanov 279353c0a1
Merge pull request #22 from status-im/RemoveServerGenerics
Remove generics from server and update sockettransport
2018-07-11 14:44:28 +03:00
coffeepots b2780cd8c2 Export chronicles in server 2018-07-11 11:03:01 +01:00
coffeepots 13ae592738 Rename sockets.nim to socket.nim and rpcsockets.nim to rpcsocket.nim 2018-07-11 10:40:20 +01:00
coffeepots b602dd4185 Rename sockettransport to sockets under a transport folder 2018-07-11 10:29:18 +01:00
coffeepots b218529d2d Remove generics from server and update sockettransport 2018-07-11 10:19:13 +01:00
coffeepots 35faf61d40
Merge pull request #21 from status-im/TransportAgnosticRpcNoDSL
Transport agnostic RPC
2018-07-10 17:27:14 +01:00
coffeepots ceec0e7690 Renamed ifRoute to tryRoute 2018-07-10 16:51:26 +01:00
coffeepots eb23c46949 Split route into json only and string version, fix lack of terminator 2018-07-10 16:07:47 +01:00
coffeepots f60a648968 Move remaining rpc routing to router.nim 2018-07-10 10:39:09 +01:00
coffeepots 9075b967d1 Move start, stop and close to transport specific sockettransport 2018-07-09 09:58:39 +01:00
coffeepots f943c584c7 Add check for empty string 2018-07-09 09:43:23 +01:00
coffeepots 4e300f1539 Remove callback arguement, addStreamServer should be using processClient 2018-07-09 09:38:26 +01:00
coffeepots cf44cc552d Remove DSL, add router and simplify server 2018-07-06 17:47:43 +01:00
coffeepots b968d96923 Fix to allow compilation of testerrors 2018-07-05 12:40:11 +01:00
coffeepots 0c98f79d9c Rename to json_rpc 2018-06-26 19:08:11 +01:00
coffeepots 68d428a0a9 Add support for `error` verb 2018-06-26 17:15:28 +01:00
coffeepots bed76ed00f Fix for errant `msg` 2018-06-26 17:15:14 +01:00
coffeepots 2c92487e1a Remove redundant "done" echo 2018-06-26 16:29:09 +01:00
coffeepots c4b27e40bf Add http test 2018-06-26 16:28:49 +01:00
coffeepots 80ef987852 Remove let, use `value` 2018-06-26 16:28:34 +01:00
coffeepots 1feca64ca8 Renamed `client` access variable to `transport` 2018-06-26 16:24:35 +01:00
coffeepots d5f397104e Added note comment 2018-06-26 16:24:04 +01:00
coffeepots f8e178e5b3 Json extraction for http server read 2018-06-26 16:23:34 +01:00
coffeepots d36da9d14c Added testing, uses http client and server 2018-06-26 15:45:40 +01:00
coffeepots 9e8121b405 Added http rpc client definition 2018-06-26 15:44:58 +01:00