Martin Chang
a2142dd93e
Coroutine support ( #693 )
...
* app().registerHttpHandler() accepts coroutine as handlers
* HttpController can use coroutine as handlers'
* Http request handlers with coroutine catches exception instead of crashing the entire app
* DbClient now has execSqlCoro that is awaitable
* DbClient now has newTransactionCoro that is awaitable
* HttpClient have awaitable sendRequestCoro
* WebSocketClient have awaitable connectToServerCoro
* WebSocketClient have setAsyncMessageHandler and setAsyncConnectionClosedHandler
* drogon::AsyncTask and drogon::Task<T> as our corutine types
* Related tests
* Misc
Future work
* Coroutine for WebSocket server
* Known issues
co_future() and sync_wait may crash. It looks like GCC bug but I'm not sure.
Workarround: Make an coroutine of AsyncTask. Then launch said coroutine.
Not sure why wrapping the exact same thing in function crashes things.
Co-authored-by: an-tao <antao2002@gmail.com>
2021-02-06 17:05:58 +08:00
An Tao
566297d4df
Create cmake.yml ( #653 )
2020-12-13 18:12:30 +08:00
Rafał Bugajewski
3f0eec6427
Added OpenBSD as Supported Operating System
2020-11-15 15:58:42 +01:00
Haceau-Zoac
2ffd4738b2
Add zh-TW README.md ( #593 )
2020-10-03 23:34:29 +08:00
an-tao
5bca202c28
Update README
2020-09-20 22:14:37 +08:00
An Tao
a32170b9a3
Modify the documentation of the method fileData() ( #566 )
2020-09-12 13:59:04 +08:00
Richard
321405a93a
Fix Chinese readme ( #543 )
2020-08-17 10:57:18 +08:00
An Tao
34cefefce4
Modify parseContentType function ( #518 )
2020-07-25 10:01:06 +08:00
an-tao
dd66ba5a73
Bump version to 1.0.0-beta19
2020-07-16 21:07:00 +08:00
Rafał Bugajewski
598d8c15b3
Added Initial Contribution Recommendations ( #445 )
...
Co-authored-by: antao <antao2002@gmail.com>
2020-05-25 21:05:05 +08:00
An Tao
7d6be171c5
Parse content-type ( #408 )
2020-04-07 23:30:59 +08:00
An Tao
c43ba9e514
Add support for brotli compression ( #406 )
2020-04-04 18:15:15 +08:00
An Tao
58702dc41e
Port drogon to Windows ( #335 )
...
Co-authored-by: mcirsta <mforce2@gmail.com>
2020-01-25 11:58:20 +08:00
An Tao
e7b6ba27bb
Make user can use a custom type parameter instead of the first parameter in handlers of HttpControllers ( #284 )
2019-10-19 14:27:34 +08:00
antao
f5c97d33cd
Update README
2019-07-10 15:03:32 +08:00
antao
4db148a5af
Update README
2019-06-26 16:49:29 +08:00
antao
3d3fd2531c
Update trantor and README.md
2019-05-18 10:56:28 +08:00
antao
1b5abb0b03
Update README
2019-05-14 11:14:51 +08:00
antao
1bc07c5197
Add support for AOP
2019-04-18 18:37:31 +08:00
antao
b96eb04859
Add WebSocket client support
2019-04-07 00:46:22 +08:00
antao
fd5c02c89f
Update README.md and the submodule trantor
2019-03-28 09:52:35 +08:00
antao
62f152b945
Add a docker badge
2019-03-14 17:51:42 +08:00
antao
b39dd52a87
Modify some comments
2019-03-06 15:57:05 +08:00
antao
5b24e90f94
Modify README
2019-02-02 10:12:57 +08:00
antao
9659ab6314
Change version
2019-01-27 16:46:26 +08:00
antao
b37aa3da6c
Modify the README
2019-01-27 12:29:00 +08:00
an-tao
375cc38517
Add a badge of code quality to the README
2019-01-22 00:26:32 +08:00
an-tao
554f6a7763
Update the README
2019-01-21 23:46:26 +08:00
antao
1227609ec3
Update the README
2019-01-18 13:18:33 +08:00
antao
13c5fca57e
Update the README and the version
2018-12-30 10:44:47 +08:00
antao
67966a7bfe
Modify the README
2018-12-21 14:50:30 +08:00
antao
7b37d8fef7
Update the submodule trantor
2018-12-19 16:01:34 +08:00
an-tao
0c2e969409
Modify the README file
2018-12-12 21:01:52 +08:00
antao
a7f82face0
Update the README
2018-12-05 09:40:34 +08:00
antao
18eb16a843
Update README.zh-CN.md
2018-11-18 21:48:42 +08:00
antao
605f6db2b8
Update README files
2018-11-18 18:26:23 +08:00
antao
0a25d6ad85
Add a Chinese readme file
2018-11-17 23:49:11 +08:00