Commit Graph

98 Commits

Author SHA1 Message Date
Greisberger Christophe aa04d33e02
Enhancement: extend drogon::ContentType for file handling () 2024-02-09 15:30:50 +08:00
Ken Matsui 22f4b4fad6
Simplify traits in utils () 2024-02-08 00:25:31 +08:00
An Tao 99d97df25f
Alias the safe hashmap template () 2024-02-04 23:13:01 +08:00
Ken Matsui c2b8e7c624
Enable readability/inheritance for cpplint () 2024-01-31 11:21:18 +08:00
Ken Matsui 56a53165b6
Add newline at EOF () 2024-01-31 10:43:30 +08:00
Christian Clauss e76bf08eb2
GitHub Action to find typos in the codebase using codespell ()
GitHub Action to find typos in the codebase using codespell
https://github.com/codespell-project/codespell
2023-12-09 13:48:24 +08:00
Vinicius 26840aa056
Fix: uuid formatting ()
Co-authored-by: root <vinicts@protonmail.com>
Co-authored-by: an-tao <antao2002@gmail.com>
2023-11-18 16:23:13 +08:00
An Tao ab76e80089
Make & and * directly adjacent to variable names () 2023-10-12 11:27:25 +08:00
Muhammad 6cb8ac6f52
SlashRemover optimization () 2023-09-19 22:28:06 +08:00
An Tao cedeeb59f4
Add a plugin for prometheus () 2023-09-04 10:16:44 +08:00
Nitromelon 53c84305b2
Simplify coroutine implementation () 2023-08-31 10:08:44 +08:00
Martin Chang f1426c6e9a
fix race condition when setting the secure flag during test () 2023-08-23 23:58:29 +08:00
Nikolay Mitev 17c80508c0 Drop cpp14 build ()
* 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 92e036874a
Fix issues in the ListParaView and content types () 2023-07-12 15:59:13 +08:00
Muhammad 61073b4f74
Base64 improvements () 2023-06-24 18:09:08 +08:00
Muhammad 269399b701
Minor improvements for SlashRemover plugin () 2023-06-14 13:46:15 +08:00
Muhammad 07726dfcab
Add SlashRemover plugin () 2023-05-26 11:08:57 +08:00
Martin Chang 122a42cd4f
Adapt Drogon to take advitange of Trantor TLS refactor ()
Co-authored-by: marty1885 <marty1885@gmail.com>
2023-03-30 23:14:53 +08:00
Nitin Anand 00debb056b
Changes to free http client if no request is pending () 2023-03-14 22:41:52 +08:00
An Tao 97a5496fa4
Add queueInLoopCoro function () 2023-03-09 16:44:34 +08:00
Nitromelon 314bab0b4c
Add switchThreadCoro(). () 2023-03-09 12:13:51 +08:00
Nitromelon bc028776f7
Refactor HttpServer codes. () 2023-02-28 10:19:26 +08:00
Martin Chang 7d87d7e0b2
Fix file r/w race condition in integration test () 2023-01-28 13:19:16 +08:00
Martin Chang 36d7435d1d
add coroutine parameter binding test and make tests not blocking () 2023-01-28 10:33:04 +08:00
Greisberger Christophe 28518b7bba
Fix HttpController regex path matching ()
* Fixed wrong controller method called on regex paths

* Fixed test executables not linking on Windows

* Fixed compilation conversion warnings with explicit casts
2022-11-17 21:56:12 +08:00
Francesco Emanuele D'Agostino 1b11bfb668
add onSessionStart() and onSessionDestroy() events ()
Co-authored-by: an-tao <antao2002@gmail.com>
2022-11-13 22:40:24 +08:00
An Tao 6a397efefe
Fix a test bug when clients start before servers () 2022-09-09 01:32:01 +08:00
An Tao c40bb2bc1f
Fix a bug when parsing multipart/form-data () 2022-08-25 23:04:23 +08:00
Nitromelon bd9d290b82
Support coroutine filter. () 2022-08-19 09:24:02 +08:00
An Tao a1d2bd168b
Change the listener port of the cookie test () 2022-07-31 12:56:49 +08:00
Nitromelon bf36db1562
Resolve real ip from HttpRequest. () 2022-07-28 23:34:35 +08:00
Ken Matsui cfe1681b0f
Omit redundant virtual specifiers () 2022-07-26 12:19:54 +08:00
Ken Matsui a582a773c1
Remove an unnecessary semi-colon () 2022-07-26 12:16:48 +08:00
Martin Chang 9524a91479
Support compressed request () 2022-07-02 22:07:48 +08:00
LE GARREC Vincent b8f44aec2e
Rename BUILD_TRANTOR_SHARED to BUILD_SHARED_LIBS () 2022-06-29 17:29:20 +08:00
LE GARREC Vincent e2b5a07921
Fix no BUILD_CTL with tests () 2022-06-29 17:26:37 +08:00
Robert Huang 3b0fd3d676
Fix HttpFile unittest error on Windows () 2022-05-17 13:20:05 +08:00
JuergenGleiss 19d9ffcfc2
Bugfix/cookie same site test without any useful checks ()
Co-authored-by: an-tao <antao2002@gmail.com>
2022-05-16 11:18:10 +08:00
JuergenGleiss c5a1888da3
Feature/option same site for session cookie () 2022-05-08 13:47:18 +08:00
LE GARREC Vincent 8c4896dfec
Fix tolower with cfi sanitizer () ()
and update trantor with same patch.
2022-04-22 11:08:40 +08:00
Martin Chang b9bbe45642
Fix XXXControllers created on MSVC even if specsfied not to do so ()
Co-authored-by: marty1885 <marty1885@gmail.com>
2022-02-26 00:19:48 +08:00
Kirill 3c785326c6
Prevent malformed upload path causing arbitrary write () 2022-02-11 23:54:42 +08:00
juanetch bbc31612fc
add max-age, samesite options to Cookie ()
Co-authored-by: an-tao <antao2002@gmail.com>
2022-01-16 11:40:17 +08:00
Nitromelon 68b2a46a29
Start listening after beginning advices () 2022-01-07 21:45:09 +08:00
Martin Chang 6b677a3ff6
Fix WS test potentially can get stuck () 2021-12-12 11:18:59 +08:00
Martin Chang 9448c19865
Fix coroutine objcet destructing before coroutine ends in async_run () 2021-11-02 13:56:18 +08:00
NitroMelon 0431f38a4e
Support range for static file () 2021-10-28 21:53:58 +08:00
Martin Chang ac4a816a99
Add async_run () 2021-10-03 16:31:52 +08:00
An Tao 4a6f298661
Update trantor () 2021-10-03 16:31:26 +08:00
An Tao 22f810a71b
Fix a race condition in testing () 2021-09-30 08:49:35 +08:00