The-EDev
869bc53150
format
2021-12-03 07:05:10 +03:00
Farook Al-Sammarraie
16df1fd771
Merge branch 'master' into auth_tutorial
2021-12-03 07:03:00 +03:00
The-EDev
78c88bbbb7
Updated mime_types script:
...
Made script generated code format compliant
Added option to have the script download the source file directly
Added generation date
Also updated the header file to the latest nginx mime.types
2021-12-03 06:41:30 +03:00
The-EDev
94a2f942bc
changed comment style back to the original (doxygen did not work with the new style)
2021-12-03 06:39:23 +03:00
The-EDev
b309bda160
Updated documentation:
...
added auth guide
updated macos setup
2021-12-03 06:38:14 +03:00
Farook Al-Sammarraie
ca48b34408
Added GH sponsors link
2021-11-30 14:57:26 +03:00
Farook Al-Sammarraie
d5822ba130
Merge pull request #290 from CrowCpp/wip-luca-schlecker
...
logger: don't append `std::endl` to the message.
2021-11-30 02:33:41 +03:00
Luca Schlecker
dc317ced93
logger: don't append std::endl to the message.
...
ILogHandler instances should take care of that.
Signed-off-by: Luca Schlecker <luca.schlecker@hotmail.com>
2021-11-29 23:59:41 +01:00
The-EDev
8c1171917b
removed 'CaseSensitive' option for compatibility
2021-11-29 13:40:41 +03:00
Luca Schlecker
081f869984
Merge pull request #286 from CrowCpp/clang-format
...
clang-format
2021-11-27 20:51:12 +01:00
The-EDev
3d67ee8556
removed BeforeWhile because it wasn't in clang-format 10 either
2021-11-27 22:29:34 +03:00
The-EDev
162c83c56c
removed BeforeLambdaBody option (potentially problematic)
2021-11-27 22:16:51 +03:00
Luca Schlecker
7e4f1494d2
improved lambda bracing by inlining only empty lambdas.
...
Signed-off-by: Luca Schlecker <luca.schlecker@hotmail.com>
2021-11-27 19:22:35 +01:00
Farook Al-Sammarraie
ef396a7c88
Merge branch 'master' into clang-format
2021-11-27 18:14:24 +03:00
Farook Al-Sammarraie
95ba140463
Merge pull request #288 from CrowCpp/wip-luca-schlecker
...
Enable a better experience using custom loggers.
2021-11-27 18:11:33 +03:00
The-EDev
d1b057d3b8
Added documentation for creating a custom logger
2021-11-27 17:37:30 +03:00
The-EDev
03e59aa446
improved bracing rules, commented out clang-format 14 rule
2021-11-27 15:28:50 +03:00
Luca Schlecker
9e0bd8ddc7
logger: move prefix and timestamp logic inside the ILogHandler default
...
implementation.
Signed-off-by: Luca Schlecker <luca.schlecker@hotmail.com>
2021-11-26 12:18:03 +01:00
The-EDev
4ae3d6d932
updated .clang-format to be compatible wih version 10, and added directory change for clang compilation and testing
2021-11-25 22:23:55 +03:00
The-EDev
185117b56a
Added missing packages
2021-11-25 21:23:36 +03:00
The-EDev
84a88ae915
fixed command error
2021-11-25 15:11:25 +03:00
The-EDev
7f4b7c8ff9
created new rules, used bot to enforce rules in PRs
2021-11-25 14:45:38 +03:00
Farook Al-Sammarraie
e87ec70179
Merge pull request #282 from CrowCpp/ws_fix
...
Opt-in websocket protocol enforcement
2021-11-22 18:07:39 +03:00
The-EDev
f8fabe32ae
fixed runtime error in basic_example
2021-11-22 17:47:02 +03:00
The-EDev
65f8eb9e44
added macro to enforce ws spec and added 16/64 bit payload length unit tests for ws
2021-11-22 17:39:48 +03:00
Farook Al-Sammarraie
aa084c4d91
Merge pull request #281 from CrowCpp/wip-luca-schlecker
...
Fix faulty https redirection.
2021-11-22 16:27:19 +03:00
The-EDev
5440489640
Added protocol to log URL when starting crow
2021-11-22 16:03:55 +03:00
Luca Schlecker
1fc5c566af
remove unused ssl code.
...
Seems like a leftover from when https was first implemented.
Signed-off-by: Luca Schlecker <luca.schlecker@hotmail.com>
2021-11-22 02:45:08 +01:00
Luca Schlecker
912bf47b6f
fix faulty https redirection.
...
Crow would redirect to https if ssl is enabled, even if no ssl is being actively used.
Signed-off-by: Luca Schlecker <luca.schlecker@hotmail.com>
2021-11-22 02:45:08 +01:00
Farook Al-Sammarraie
0e15963cd2
Github doesn't support inline language highlighting
2021-11-21 23:47:48 +03:00
Farook Al-Sammarraie
31083a2f07
Merge pull request #280 from CrowCpp/wip-luca-schlecker
...
Remove the need for `#define CROW_MAIN`
2021-11-21 23:45:56 +03:00
Luca Schlecker
18ba83ab93
add a disclaimer for users of v0.3 that #define CROW_MAIN
is required.
...
Signed-off-by: Luca Schlecker <luca.schlecker@hotmail.com>
2021-11-21 21:39:17 +01:00
Luca Schlecker
e5c7daccce
remove every occurance of #define CROW_MAIN
.
...
Signed-off-by: Luca Schlecker <luca.schlecker@hotmail.com>
2021-11-21 17:25:16 +01:00
Luca Schlecker
5823a5984e
remove the need for #define CROW_MAIN
.
...
This is achieved using the conts type qualifier as it gives internal linkage.
fixes #273
Signed-off-by: Luca Schlecker <luca.schlecker@hotmail.com>
2021-11-21 17:25:16 +01:00
Farook Al-Sammarraie
b1718befaa
Merge pull request #278 from CrowCpp/wip-luca-schlecker
...
Replace `dumb_timer_queue` with new `task_timer`
2021-11-21 18:07:48 +03:00
Luca Schlecker
250c793c48
http_server: fix reordering warning.
...
The introduced `timeout_` variable was initialized in a different order than the member initializer list suggested.
Signed-off-by: Luca Schlecker <luca.schlecker@hotmail.com>
2021-11-21 15:45:46 +01:00
Luca Schlecker
118c992e0d
task_timer: align comment style with Crow's.
...
Signed-off-by: Luca Schlecker <luca.schlecker@hotmail.com>
2021-11-21 15:45:40 +01:00
Luca Schlecker
6458184e8f
task_timer: rename set_timeout
to schedule
.
...
Signed-off-by: Luca Schlecker <luca.schlecker@hotmail.com>
2021-11-20 17:03:58 +01:00
Luca Schlecker
403d0dcffd
add unit test for task_timer.
...
Signed-off-by: Luca Schlecker <luca.schlecker@hotmail.com>
2021-11-20 16:56:26 +01:00
Luca Schlecker
de92d28f29
replace dumb_timer_queue
with new task_timer
.
...
fixes #264 , lays ground for #273 and #257 .
Signed-off-by: Luca Schlecker <luca.schlecker@hotmail.com>
2021-11-19 18:55:10 +01:00
Farook Al-Sammarraie
22d3918345
Merge pull request #277 from CrowCpp/wip-luca-schlecker
...
Add unit test for server timeout.
2021-11-17 23:07:06 +03:00
Luca Schlecker
b47e0adcf7
add unit test for server timeout.
...
Signed-off-by: Luca Schlecker <luca.schlecker@hotmail.com>
2021-11-17 19:42:36 +01:00
Farook Al-Sammarraie
8cf97cfa29
Merge pull request #276 from nx10/master
...
Get app port
2021-11-15 15:53:07 +03:00
Farook Al-Sammarraie
7f8629075d
Added newline to end of unittest.cpp
2021-11-15 15:52:33 +03:00
Florian Rupprecht
5bb7fac016
Get app port
2021-11-14 13:04:19 +01:00
Farook Al-Sammarraie
4ac5892160
Merge pull request #270 from CrowCpp/docs_meta
...
Mkdocs fixes
2021-11-06 21:21:25 +03:00
The-EDev
2665086a49
multiple docs changes:
...
Added meta tags for homepage
Added meta description generator
Removed usages of <h1> (mkdocs-material doesn't reconize more than 1)
added space after # (markdown proper syntax)
removed pip3 command from pull request CI
2021-11-06 11:54:29 +03:00
Farook Al-Sammarraie
b5137c52a1
Merge pull request #265 from Leon0402/feature/cpp20Support
...
MSVC C++20 Support
2021-11-03 20:43:04 +03:00
Farook Al-Sammarraie
2dc07aaa7e
Merge branch 'master' into feature/cpp20Support
2021-11-03 20:07:59 +03:00
The-EDev
6f2eedaf9b
added Catch2 to Attributions section in README
2021-11-03 05:19:25 +03:00