Commit Graph

51 Commits

Author SHA1 Message Date
Ștefan Talpalaru 159f9b816e
assert() -> doAssert() 2019-03-13 22:42:07 +01:00
Mamy Ratsimbazafy 53ed44dfa5
Rebrand asyncdispatch2 to chronos (#50) 2019-02-06 18:27:58 +01:00
Ștefan Talpalaru 1083b2972a support Content-Type headers with specified charset
and add RPC message content to the debugging output (at the TRACE level,
disabled by default)
2019-01-28 12:39:27 +02:00
Ștefan Talpalaru 64a9999ac9 another {.gcsafe.} pragma, just for Windows 2019-01-17 18:35:15 +02:00
andri lim 0cdeb04a12 fix httpclient logScope 'topic' to 'topics' 2019-01-16 13:03:57 +02:00
andri lim b9286104e7 use HTTP1.0 and drop connection:keep-alive 2019-01-12 16:17:19 +02:00
Ștefan Talpalaru cbbdc34399 fix breakage with Nim HEAD 2019-01-04 15:57:52 +02:00
Yuriy Glukhov 839cc3ae33 Fixed compilation error with newer nim 2018-12-20 12:58:42 +02:00
cheatfate 6a0b0ff30d Fix support of `Content-Length` response header. 2018-12-10 13:56:10 +02:00
coffeepots 798e86112c Cover optional cases within objects 2018-11-26 18:03:56 +00:00
coffeepots 51ed6f3000 Remove expectType for Option[T], use fromJson on subtype for validation 2018-11-23 16:10:35 +00:00
coffeepots e942357de6 Fix iterating through return type 2018-11-23 16:05:46 +00:00
coffeepots 5e7f2d6a61
Merge pull request #42 from jangko/rpc_macro
add optional arg support to rpc macro
2018-11-19 10:58:38 +00:00
andri lim a1fe7d57b4 allow optional parameters in the middle of parameters list 2018-11-16 20:07:39 +07:00
coffeepots a14e2dbcbb
Merge pull request #41 from jangko/add_http_method
fixes #37 add http method get/set to httpclient
2018-11-14 16:48:30 +00:00
andri lim 3c4c5559f1 add httpMethod param to httpclient.call 2018-11-13 10:22:43 +07:00
Zahary Karadjov 26953344c3 Turn some potentially dangerous templates into functions
Be careful when creating templates. If the input parameters are
referenced within the body multiple times, this may lead to multiple
evaluations of functions with side-effects.
2018-11-12 23:51:24 +02:00
andri lim 06637848de remove httpmethod enum 2018-11-12 21:02:54 +07:00
andri lim ee3ba6d5ad add optional arg support to rpc macro 2018-11-12 17:47:03 +07:00
andri lim 965e2c16f5 fixes #38 add http method get/set to httpclient 2018-11-12 11:43:51 +07:00
andri lim d224b7dea7 add host to http header 2018-11-07 22:43:52 +07:00
coffeepots bb9896d693 Add closeWait to httpServer 2018-09-13 18:06:33 +01:00
coffeepots ef86bf3bce Add closeWait to socketServer 2018-09-13 18:06:13 +01:00
coffeepots 40e2c83023 Added allowNull to expectType 2018-08-29 14:16:03 +03:00
coffeepots e7f66a0b4d Support Option[T] types, added expectType, expect error to use [] in msgs 2018-08-29 14:16:03 +03:00
coffeepots f6ad1fd1c7 Update to SomeInteger 2018-08-16 13:07:21 +03:00
coffeepots 13a9a1f58b Add ref int and ref int64 2018-08-16 13:07:21 +03:00
Zahary Karadjov 642fdd591f fix the package structure to make Nimble happy 2018-07-20 19:34:10 +03: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
cheatfate 19b3b3aa6d Cosmetic changes. 2018-07-14 11:25:27 +03:00
cheatfate 0942b0387d Add RpcHttpServer.
Add RpcHttpClient.
2018-07-14 10:51:54 +03:00
coffeepots 8b42296553 Cosmetic spacing update 2018-07-13 16:36:06 +01:00
coffeepots 1ca1847600 Make client usable with different transports 2018-07-12 18:36:40 +01:00
coffeepots 8d3473e75b Renamed newStreamClient to newSocketClient, added a check for nil transport 2018-07-12 14:06:35 +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
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 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 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