antao
03921f7f2c
Add Jetbrains Qodana CI
2024-01-11 22:52:56 +08:00
antores
5ecbd1f184
Fix htonll/ntohll redefinition ( #1899 )
...
Co-authored-by: antores <antores@users.noreply.github.com>
2024-01-09 09:47:07 +08:00
dependabot[bot]
34d32a1ef0
Bump github/codeql-action from 2 to 3 ( #1894 )
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 2 to 3.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](https://github.com/github/codeql-action/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-01 21:09:34 +08:00
Ken Matsui
1fd5c7ea5e
Remove macos-11 CI; not supported by Homebrew ( #1891 )
2023-12-28 22:29:45 +08:00
An Tao
2a0da80d5f
Avoid a race condition in database listener tests ( #1890 )
2023-12-28 19:23:42 +08:00
Ken Matsui
01ad18d2d5
Add CI tests with more compilers ( #1889 )
2023-12-28 15:59:29 +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
An Tao
021c89ec78
Add -k option to the drogon_ctl when running the press command ( #1887 )
...
* Add -k option to the drogon_ctl when running the press command
* Fix some warnings
* Fix a bug of bytes statistics in HttpClient
2023-12-25 09:39:16 +08:00
an-tao
125dd0e69e
Set the url of trantor to the official repository
2023-12-19 10:02:42 +08:00
an-tao
38bde80aaa
Update trantor
2023-12-18 18:25:36 +08:00
An Tao
4eec56c49f
Remove the default ctor of the Row class in ORM ( #1885 )
2023-12-17 08:28:35 +08:00
Tanglong3bf
ba9e9731d2
Fix ORM: The original way did not handle exceptions correctly. ( #1872 )
2023-12-16 14:07:27 +08:00
Martin Chang
41b740f649
add discord link to readme ( #1879 )
2023-12-11 14:10:33 +08:00
Christian Clauss
e76bf08eb2
GitHub Action to find typos in the codebase using codespell ( #1876 )
...
GitHub Action to find typos in the codebase using codespell
https://github.com/codespell-project/codespell
2023-12-09 13:48:24 +08:00
An Tao
c35e62ccd2
Use execute_process instead of exec_program in FindJsoncpp.cmake ( #1875 )
2023-12-08 17:33:06 +08:00
antao
358de6e66f
Modify the configuration file templates in drogon_ctl
2023-12-05 22:05:19 +08:00
Greisberger Christophe
8026790e1a
Feature: Integrate spdlog as logging backend ( #1771 )
2023-12-04 23:42:35 +08:00
An Tao
4e890f52d6
Fix a error of coroutines on Windows ( #1870 )
2023-12-04 15:13:09 +08:00
Minha, Jeong
27f1a3d812
Fix: typo on Mapper method ( #1867 )
2023-11-28 17:52:25 +08:00
an-tao
6370461896
Bump version to 1.9.1
2023-11-27 18:55:54 +08:00
Muhammad
6b20a9fa8d
Return `HttpAppFramework` by `setExceptionHandler` ( #1866 )
2023-11-27 17:43:56 +08:00
Muhammad
830ced8c5b
Remove unused and undefined overloads of `isBase64` ( #1865 )
2023-11-27 17:08:01 +08:00
Tanglong3bf
6f6a03b14b
Provide some functions for incrementing the value of given columns. ( #1831 )
2023-11-25 02:23:37 +08:00
Martin Chang
f21b899e63
Simplify drogon test with c++17 ( #1862 )
2023-11-24 18:17:30 +08:00
Vinicius
26840aa056
Fix: uuid formatting ( #1854 )
...
Co-authored-by: root <vinicts@protonmail.com>
Co-authored-by: an-tao <antao2002@gmail.com>
2023-11-18 16:23:13 +08:00
George Constantinides
01385f4f33
Update test_cmake.csp ( #1856 )
...
_test not needed for submodule target_link_libraries since it was added in project
2023-11-18 16:13:30 +08:00
Muhammad
2000a4279e
Make id generator consistent ( #1851 )
2023-11-18 15:46:59 +08:00
An Tao
1ec3c96cbb
Use the constexpr if instead of std::enable_if ( #1843 )
2023-11-15 11:22:14 +08:00
Muhammad
56f0102cfe
Custom sessions ( #1841 )
2023-11-09 21:38:41 +08:00
antores
a76c11cc34
Pass HttpRequestPtr to custom error handlers ( #1830 )
2023-11-09 12:49:11 +08:00
An Tao
e5daba6bf5
Fix a bug of the GlobalFilters plugin ( #1842 )
2023-11-09 12:47:02 +08:00
Vincent Le Quang
8586874c87
Fix build due to trantor commit out of date and address warnings. ( #1839 )
2023-11-08 15:10:50 +08:00
antao
f215cb15a0
Bump version to 1.9.0
2023-10-29 11:44:42 +08:00
An Tao
7599ae98a0
Change logs in the AccessLogger plugin to TRACE level ( #1829 )
2023-10-29 11:30:44 +08:00
Viktor Mukha
4323e7b6ef
FIX int mapping to int64_t instead of uint64_t ( #1825 )
...
Negative numbers were not passing json validation
2023-10-28 22:13:57 +08:00
An Tao
9ffe1b267b
Fix an error in the secureRandomString function ( #1816 )
2023-10-19 19:38:17 +08:00
Muhammad
645c2d8aaf
Use `wss://echo.websocket.events/.ws` in WebSocket client example ( #1809 )
2023-10-12 11:27:49 +08:00
An Tao
ab76e80089
Make & and * directly adjacent to variable names ( #1810 )
2023-10-12 11:27:25 +08:00
TheEnigmist
d9afdf279a
Added isTopicEmpty function ( #1808 )
...
Co-authored-by: TheEnigmist <lthenigmistl@gmail.com>
2023-10-10 11:03:27 +08:00
dependabot[bot]
1efe89a719
Bump actions/checkout from 3 to 4 ( #1801 )
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-01 20:37:09 +08:00
OrbitZore
fd7af8110f
Add optional Criteria && || operator support ( #1797 )
2023-09-26 13:58:02 +08:00
an-tao
63b7f5eb13
Update the ubuntu Dockerfile
2023-09-25 18:06:08 +08:00
An Tao
94ca651cbd
Bump version to 1.9.0-rc.1 ( #1789 )
2023-09-24 10:52:52 +08:00
Muhammad
6cb8ac6f52
SlashRemover optimization ( #1781 )
2023-09-19 22:28:06 +08:00
Muhammad
078f60ca03
Add override keyword to setSockOptCallback ( #1785 )
2023-09-19 09:23:33 +03:00
Muhammad
cfa0de4389
Optimize regex generator ( #1782 )
2023-09-18 09:50:28 +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
An Tao
4e5638fdcd
Add a method to HttpRequest to access the matched routing parameters ( #1765 )
2023-09-04 10:13:14 +08:00
Nitromelon
e2e5d6d57f
Allow omitting template paremeter in execCommandSync. ( #1764 )
2023-08-31 19:19:58 +08:00