Commit Graph

41 Commits

Author SHA1 Message Date
MWX af29e25b03
Fix name issue when cross-compiling (#1906) 2024-01-18 13:38:27 +08:00
tripleslash 6b36b3a4f9
Support asynchronous sending of chunked responses (trantors new API) (#1886)
Co-authored-by: fantasy-peak <1356346239@qq.com>
Co-authored-by: Michael Bleis <michael.bleis@aracom.de>
2024-01-15 23:26:27 +08:00
Nitromelon a1a0ef1af8
Support redis subscription (#1212) 2022-09-13 10:30:51 +08:00
Martin Chang 6427fdedcc
Add websocket server example (#957) 2021-08-04 12:48:42 +08:00
James Armes 5245f136b7
Add GCC-compatible warnings to the example executables (#910) 2021-06-27 09:54:02 +08:00
Martin Chang cd46b4a488
Add jsonstore example (#894)
Adds a minimal useful RESTful API example to showcase how to build APIs in Drogon. The added example is multi-threaded and stores data in memory.
2021-06-19 22:55:44 +08:00
Martin Chang c6b65485e1
Add minimal server side examples (#880) 2021-06-01 16:08:51 +08:00
Martin Chang 0b5075bfa9
Drogon test framework (#869) 2021-05-27 20:09:57 +08:00
interfector18 49181a22b2
Use canonical cmakelogic for cross compilation, (#768)
Fix clang c++20 build
2021-03-25 04:27:52 +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
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 43e7b3fec0
Add --path-to-namespace option to drogon_ctl for creating views (#607) 2020-10-12 21:51:39 +08:00
adrian fd2a612945
add digest filter in examples (#462)
* add digest filter in examples

* Add getMd5() function to the public API

Co-authored-by: Adrián Ortiz Gutiérrez <aortiz@MacBook-Pro.local>
Co-authored-by: antao <antao2002@gmail.com>
2020-06-07 14:43:05 +08:00
An Tao ebb8b7b70a
Add ENABLE_EXPORTS property in cmake configuration files (#375) 2020-03-05 22:03:41 +08:00
An Tao e171874524
Modify installation on Windows (#366) 2020-02-29 15:46:08 +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
Daniel Mensinger 795079531a cmake: use export namespace for Drogon::Drogon (#255)
* cmake: use ${PROJECT_NAME} instead of drogon everywere

* cmake: use export namespace instead of dummy library
2019-09-26 19:33:58 +08:00
An Tao aa26e9a903
Modify the CMakeLists to modern cmake style (#229) 2019-08-31 08:27:57 +08:00
An Tao 7186a74590
Add a WebSocket test (#227) 2019-08-26 17:53:02 +08:00
An Tao c705990fe5
Add the DrogonConfig.cmake (#207)
Add DrogonConfig.cmake so that users can use drogon with the `find_package(Drogon)` command.
2019-08-08 15:17:09 +08:00
antao 40087fba9c Remove config.h
Modify the CMakeLists.txt

Remove the USE_ORM macro

Update trantor

Remove some std::dynamic_pointer_cast calls
2019-07-29 14:53:41 +08:00
antao 2efa183b93 Implement gzip_static 2019-05-03 14:44:20 +08:00
antao 3a587ab90b Modify the pipeling test 2019-04-07 12:15:02 +08:00
antao b96eb04859 Add WebSocket client support 2019-04-07 00:46:22 +08:00
antao 8ae07ce195 Use PROJECT_SOURCE_DIR instead of CMAKE_SOURCE_DIR in CMakeLists.txt files 2019-03-27 19:32:09 +08:00
antao 250781ac08 Add configuration options that limit the number of keep-alive requests 2019-03-12 18:22:13 +08:00
antao ec7e8a1040 Forbid to download files from the parent folder 2019-01-19 22:57:07 +08:00
antao 38e8148b56 Add a test client for the simple example 2019-01-19 12:26:03 +08:00
antao 327a7a2f75 Add benchmark code to the examples path 2018-12-15 20:05:19 +08:00
antao af53337a6a Add configuration options to the configuration file for simple controller mapping 2018-10-21 14:52:41 +08:00
antao 8df7b9c69a Update CMakeLists.txt for using older basename command 2018-10-17 18:43:51 +08:00
antao 790867d1e3 Add gzip compressing 2018-09-03 10:56:11 +08:00
antao 0e68138fa6 Debug HttpClient... 2018-07-24 17:24:23 +08:00
an-tao 0af5482a9a rename a example dir 2018-06-28 23:29:40 +08:00
root 82855fc86e fix precompiled bugs 2018-06-23 11:22:20 +00:00
an-tao 95b83206fb Write the compilation configuration to config.h 2018-06-14 14:25:57 +08:00
an-tao 6c7512bdf4 file uploading 2018-06-11 15:45:28 +08:00
an-tao a9b6c9896f change TestView.csp 2018-05-30 13:59:12 +08:00
an-tao 388f97d729 add HttpView csp file in example 2018-05-30 13:23:59 +08:00
an-tao 652560697d add json Response 2018-05-21 18:54:00 +08:00
an-tao ecfea6f713 add HttpAppFramework class,not complete 2018-05-02 17:45:10 +08:00