Commit Graph

219 Commits

Author SHA1 Message Date
An Tao
8bdb9b2fa6
Bump version to 1.9.5 (#2057) 2024-06-08 20:31:23 +08:00
Nitromelon
155ae9ad65
Support postgresql connection options (#1972) 2024-05-23 14:03:28 +08:00
Nitromelon
5b7cefd32c Support per-method middlewares. (#2015) 2024-05-10 10:59:32 +08:00
antao
b5cd748a12 Bump version to 1.9.4 2024-05-04 22:42:15 +08:00
an-tao
da7f065a6f Bump version to 1.9.3 2024-02-09 16:06:33 +08:00
an-tao
93c568bb95 Bump version to 1.9.2 2024-01-18 21:46:10 +08:00
MWX
af29e25b03
Fix name issue when cross-compiling (#1906) 2024-01-18 13:38:27 +08:00
Nitromelon
f4443dce44
Refine request routing process (#1871)
Code structure changes:
* Combine HttpSimpleControllersRouter, HttpControllersRouter and WebsocketControllersRouter, saving a lot of repetitive codes.
* Extract ControllerBinder classes from three Router classes.
* Extract aop advices and logics into AopAdvice class. Flatten the callback hells of AOPs. Prevent aop vectors from being passed into every router.
* Extract request handling process out of Router class. Let router class do its own work (routing only). Put them in HttpServer class. Now all http process logic stays in HttpServer class, no need to jump around to follow the code flow.
* Adjust doFilters() and doAdviceChain(), save a few lambda construction.
Fixed logic bugs (behavior changing):
* Fix inconsistent session handling (callCallback() vs. callback directly)
* Fix inconsistent aop path between SimpleController and HttpController
* Remove router if simple controller class not found.
2023-12-28 11:53:10 +08:00
Greisberger Christophe
8026790e1a
Feature: Integrate spdlog as logging backend (#1771) 2023-12-04 23:42:35 +08:00
an-tao
6370461896 Bump version to 1.9.1 2023-11-27 18:55:54 +08:00
antao
f215cb15a0 Bump version to 1.9.0 2023-10-29 11:44:42 +08:00
An Tao
94ca651cbd
Bump version to 1.9.0-rc.1 (#1789) 2023-09-24 10:52:52 +08:00
An Tao
112d19ff12
Optimize plugins with redirection functions (#1776)
Note: after this submission, users who use the SecureSSLRedirector plugin and the SlashRemover plugin should add the following line to the configuration file:
   {
      "name": "drogon::plugin::Redirector",
      "dependencies": [],
      "config": {
      }
   }
 and add the plugin name "drogon::plugin::Redirector" to the dependencies list of the SecureSSLRedirector plugin and the SlashRemover plugin.
2023-09-16 17:33:38 +08:00
An Tao
cedeeb59f4
Add a plugin for prometheus (#1632) 2023-09-04 10:16:44 +08:00
Ken Matsui
5d0c70278e
Delete apply.h (#1763) 2023-08-29 13:55:04 +08:00
Nikolay Mitev
17c80508c0 Drop cpp14 build (#1740)
* Drop C++14 Support

* Update README.md

* Remove drogon::optional in favor of std::optional

* Remove drogon::filesystem in favor of std::filesystem

* Remove boost::string_view and pre-c++17 hacks

* Remove boost::any

* Remove the string_view.h and the any.h

* Remove boost lib

* Update .clang-format and ci

Co-authored-by: Omar Mohamed <omar@omar-laptop.lan>
Co-authored-by: Ken Matsui <26405363+ken-matsui@users.noreply.github.com>
Co-authored-by: An Tao <antao2002@gmail.com>
Co-authored-by: albaropereyra22 <141711575+albaropereyra22@users.noreply.github.com>
Co-authored-by: Yoshihiro Hokazono <47231909+hokacci@users.noreply.github.com>
Co-authored-by: Omar Mohamed Khallaf <51155980+omarmohamedkh@users.noreply.github.com>
2023-08-23 11:49:55 +08:00
an-tao
f361995035 Bump version to 1.8.6 2023-08-23 10:02:08 +08:00
Ken Matsui
3723ed5e0c
Show outputs of try_compile for UUID libs (#1738) 2023-08-22 21:24:42 +08:00
antao
83e08f4b27 Bump version to 1.8.5 2023-08-20 13:17:52 +08:00
Bensuperpc
f16017ee6e
Change options BUILD_CTL and BUILD_EXAMPLES and update readme with Building options (#1672)
Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
2023-07-31 23:16:15 +08:00
Hayden Zhou
8f37e526cc
Fix target link libraries of yaml-cpp to comaptiable with vcpkg. (#1698) 2023-07-29 23:23:05 +08:00
Muhammad
07726dfcab
Add SlashRemover plugin (#1614) 2023-05-26 11:08:57 +08:00
435qb
415b34e06d
Fix Missing Header BaseBuilder.h in CMakeLists (#1617) 2023-05-23 19:39:08 +08:00
Ken Matsui
bd66fa4f55
Remove path from COMPILER_COMMAND (#1590) 2023-05-09 19:24:00 +08:00
An Tao
c7912f246b
Add the GlobalFilters plugin (#1555) 2023-04-16 11:55:00 +08:00
Martin Chang
122a42cd4f
Adapt Drogon to take advitange of Trantor TLS refactor (#1505)
Co-authored-by: marty1885 <marty1885@gmail.com>
2023-03-30 23:14:53 +08:00
An Tao
ceab5f3037
Bump version to 1.8.4 (#1539) 2023-03-20 23:31:07 +08:00
An Tao
21e207abe5
Add a cmake option to use yaml-cpp or not (#1538) 2023-03-20 19:02:13 +08:00
Hayden Zhou
d4c0e063f1
Add support to yaml config file. (#1521)
Co-authored-by: an-tao <antao2002@gmail.com>
2023-03-09 00:17:11 +08:00
An Tao
57ec87d38d
Add an option in CMakeLists.txt to set how to use trantor (#1520) 2023-03-09 00:16:21 +08:00
An Tao
0b3147c157
Bump version to 1.8.3 (#1485) 2023-01-23 11:03:50 +08:00
Nitromelon
1618484d74
Support postgresql asynchronous notification (LISTEN/NOTIFY). (#1464) 2023-01-04 23:50:49 +08:00
Martin Chang
ef93c91ec7
Drogon test refactor (#1437) 2022-11-12 12:54:22 +08:00
an-tao
31fa010ca9 Bump version to 1.8.2 2022-11-11 21:08:29 +08:00
An Tao
164972e2d3
Add rate limiter (#1409) 2022-10-27 22:49:16 +08:00
an-tao
875bca0a86 Bump version to 1.8.1 2022-09-25 23:11:18 +08:00
Nitromelon
a1a0ef1af8
Support redis subscription (#1212) 2022-09-13 10:30:51 +08:00
An Tao
574a60f812
Bump version to 1.8.0 (#1312) 2022-09-01 00:49:48 +08:00
Nitromelon
bf36db1562
Resolve real ip from HttpRequest. (#1321) 2022-07-28 23:34:35 +08:00
LE GARREC Vincent
b8f44aec2e
Rename BUILD_TRANTOR_SHARED to BUILD_SHARED_LIBS (#1299) 2022-06-29 17:29:20 +08:00
Nitromelon
3388c72343
Install missing header file apply.h (#1267) 2022-05-29 18:57:18 +08:00
Nitromelon
8ab868ea22
Check mysql-optionsv support in cmake. (#1265) 2022-05-29 15:17:15 +08:00
an-tao
fc68b8c92c Bump version to 1.7.5 2022-02-19 18:42:49 +08:00
X-rays5
92d39fb174
Fix sqlite3 and mariadb when using vcpkg (#1165) 2022-01-25 21:00:56 +08:00
Martin Chang
52800006a0
Avoid attempt linking to std::fs when target does not exist (#1131) 2021-12-21 22:22:57 +08:00
an-tao
be3136ea26 Bump version to 1.7.4 2021-12-11 10:27:51 +08:00
Martin Chang
e4ec2c36c5
Fix build fail on CentOS8 (#1078) 2021-11-16 22:32:08 +08:00
NitroMelon
0431f38a4e
Support range for static file (#1060) 2021-10-28 21:53:58 +08:00
Martin Chang
e2eb674781
Fix Drogon not building caused by FindFilesystem (#1056)
* fix FindFilesystem not using the correct header for printf

* fix FS not found on Yocto
2021-10-21 19:43:53 +08:00
an-tao
5a03c9aa9f Bump version to 1.7.3 2021-10-17 11:49:20 +08:00