An Tao
eb2d24197a
Fix the error when SSL handshake fails ( #717 )
2021-02-15 09:15:26 +08:00
interfector18
12cfdd5916
Lowercase all http headers, add webp and avif types ( #718 )
2021-02-15 09:14:54 +08:00
An Tao
3b8b63d17d
Add drogon::orm::CoroMapper<T> template ( #712 )
...
Co-authored-by: marty1885 <marty188586@gmail.com>
2021-02-13 18:22:17 +08:00
An Tao
cfb71cc619
Add transactions test of coroutines ( #711 )
2021-02-10 23:24:15 +08:00
mbehboodian
33044c823f
Fix typo in README.md ( #708 )
2021-02-07 17:08:41 +08:00
Martin Chang
0b5920a1f3
Fix stack use after scope error in client_example ( #707 )
2021-02-07 10:35:21 +08:00
interfector18
6542236b20
Add default value interface to sqlbinder for mysql and postgresql ( #704 )
2021-02-07 10:34:49 +08:00
An Tao
4c577e6fa9
Fix compilation errors on vs2019 ( #706 )
...
Fix compilation errors on VS2019 when coroutines are enabled
2021-02-06 19:53:30 +08:00
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
7ce5768372
Return 404 or 405 responses correctly ( #705 )
2021-02-06 15:16:44 +08:00
An Tao
5426100bde
Fix a error in the HttpClient class when a response has no content-length header ( #698 )
2021-02-03 14:54:45 +08:00
Martin Chang
a060351f7a
Fix CI fail on OS X ( #699 )
2021-02-03 13:10:08 +08:00
双草酸酯
2919fdb7d4
Handle cross compiling properly (Fix for #654 ) ( #694 )
2021-01-24 22:44:20 +08:00
Martin Chang
0168cd0574
Bump version in CMakeLists.txt to 1.3.0 ( #692 )
2021-01-17 12:03:27 +08:00
an-tao
1bbc457f0d
Bump version to 1.3.0
2021-01-16 22:13:26 +08:00
丁盟
64e916ccb3
Fix an error with missing composite key to sqlite3 ORM generator ( #673 )
2021-01-05 22:14:31 +08:00
An Tao
f26450f04b
Fix an error in sqlite3 ORM generator ( #669 )
2020-12-30 20:11:24 +08:00
An Tao
66fbb33956
Add format check to actions ( #668 )
2020-12-26 14:39:38 +08:00
Jiannan Liu
4b5885e3c0
Serve wasm files with the correct MIME type ( #667 )
2020-12-26 12:21:43 +08:00
An Tao
ec59dbbc3d
Add option for setting float precision in Json string ( #666 )
2020-12-24 20:00:29 +08:00
An Tao
1cb8b17709
Fix some bugs when creating models via drogon_ctl ( #660 )
2020-12-18 09:41:58 +08:00
zorosz
61bb2cf130
Based on https://github.com/an-tao/drogon/issues/627#issuecomment-727768460 ( #659 )
...
Co-authored-by: oroszz <oroszz>
2020-12-18 09:41:04 +08:00
Joakim L. Gilje
f9d714ab74
sqlite3: Insert into stmtsMap_ as string_view ( #657 )
2020-12-14 08:50:58 +08:00
An Tao
ce704aff5b
Update trantor ( #656 )
...
* Update trantor
* Make some minor modifications.
2020-12-14 08:49:33 +08:00
ivanka2012
d2f291689d
Fix cmake drogonctl crosscompile ( #654 )
2020-12-13 22:12:01 +08:00
An Tao
566297d4df
Create cmake.yml ( #653 )
2020-12-13 18:12:30 +08:00
An Tao
28f6338271
Remove the use of std::filesystem to adapt to old compilers ( #652 )
2020-12-12 20:37:44 +08:00
ivanka2012
64fe47acd8
Fix brotli link order ( #651 )
2020-12-12 19:39:26 +08:00
an-tao
35b4a86e06
Bump version to 1.2.0
2020-12-12 16:33:13 +08:00
ivanka2012
292894c426
Fix MinGW ORM building by enabling htonll and ntohll ( #650 )
2020-12-11 16:13:00 +08:00
ivanka2012
1abd8b3506
Add implicit page resolving capability (a-directory -> a-directory/index.html) ( #647 )
...
Co-authored-by: an-tao <antao2002@gmail.com>
2020-12-11 14:02:47 +08:00
An Tao
8b7ffb28d7
Add support in the SqlBinder class and the Session class ( #644 )
2020-12-06 11:41:06 +08:00
An Tao
7dd2d6123b
Add the reuse_port option ( #634 )
2020-11-25 19:47:36 +08:00
An Tao
69d687dbcb
Fix a stack-overflow error when high concurrency happening on sqlite3 ( #633 )
2020-11-22 20:47:38 +08:00
Martin Chang
4ca90f2415
Don't send content type in a 304 response ( #630 )
2020-11-18 22:31:55 +08:00
An Tao
4ce2d25d55
Return 400 if the content-length is invalid ( #629 )
2020-11-18 15:09:25 +08:00
Rafał Bugajewski
72a4cad9c1
Added OpenBSD as Supported Operating System
2020-11-15 15:59:52 +01:00
Rafał Bugajewski
3f0eec6427
Added OpenBSD as Supported Operating System
2020-11-15 15:58:42 +01:00
Rafał Bugajewski
3c0103d324
Added OpenBSD as Supported Operating System
2020-11-15 15:57:59 +01:00
Joakim L. Gilje
886dfc3648
Support OpenBSD ( #626 )
...
Co-authored-by: an-tao <antao2002@gmail.com>
2020-11-15 12:18:01 +08:00
An Tao
4f9ee82153
Modify the WebSocketTest controller to create a simple chat room ( #625 )
2020-11-14 11:48:40 +08:00
An Tao
7e8beacd1d
Fix error when receiving response without content-length header ( #623 )
2020-11-11 21:50:43 +08:00
an-tao
fb17efe765
Bump version to 1.1.0
2020-10-31 11:10:23 +08:00
An Tao
594911b7a2
Fix a bug in the Mapper::insertFuture() ( #620 )
2020-10-29 20:09:16 +08:00
An Tao
dbf21f7dbc
Fix a bug when creating sqlite3 database models ( #618 )
2020-10-27 21:26:01 +08:00
An Tao
de37a0ae29
Add the Host and Sec-WebSocket-Version headers when connecting to a websocket server ( #615 )
2020-10-25 08:36:40 +08:00
An Tao
ed2818ed89
Find mariadb client library correctly on Ubuntu 20.04 ( #613 )
2020-10-24 14:28:39 +08:00
Amirali Amirifar
17b3ea471d
Remove duplicate definition of args
vector. ( #609 )
...
* Remove duplicate definition of `args` vector.
Removed duplicate definition of the variable `args` which could be defined in the first line rather than defining once in the if scope and once in the main function.
2020-10-13 10:29:01 +08:00
An Tao
43e7b3fec0
Add --path-to-namespace option to drogon_ctl for creating views ( #607 )
2020-10-12 21:51:39 +08:00
An Tao
c264c91f38
Support namespaces when creating view source files ( #606 )
2020-10-09 21:41:27 +08:00