156 Commits

Author SHA1 Message Date
Gulliver
d3038b6ac8 for log handler a string reference is sufficient, inside the log handler used string.append instead of + operator 2025-07-11 14:31:56 +02:00
gittiver
35fd6bdd71 Compiler warning fixes (#870)
* added cmake presets for enabling additional compiler warnings (as in VC)
* basic fixes
-removed superfluous semicolon
- added static_cast where it will definitely cause no change in behaviour
- small adaptions in member and parameter types
2025-06-26 14:03:42 +02:00
Farook Al-Sammarraie
bdc1e6d5b9 Merge branch 'master' into unix_socket 2024-10-25 21:20:25 +00:00
bgs99
18cfb3496c Multipart message view (#862)
* multipart::message_view
* Make multipart::message_view non-returnable
* Store message headers by reference
2024-08-13 09:49:07 +02:00
davidot
31ca145716 Make websocket close include the status code (#854)
added status code to on_close function, status code will be sent now
2024-07-29 10:20:22 +02:00
na-trium-144
0bdbeaaa52 rename unix_path to local_socket_path 2024-06-06 03:28:16 +09:00
na-trium-144
a0ce00ce0e no need to use windows api 2024-04-21 01:16:11 +09:00
na-trium-144
76f8c587c7 add example for unix socket 2024-04-21 00:28:41 +09:00
witcherofthorns
3f632dd71b small explanations in the example on using CORS middleware in Crow v1.0 2024-02-18 13:54:20 +01:00
Gulliver
985a01f587 commented out failing coverall task 2023-06-14 10:50:24 +02:00
Gulliver
b99b4c210c fix for compilation error on Windos/ VIsual Studio build 2023-06-14 09:01:53 +02:00
Kiner Shah
d3f08bc7d6 Added an example for uploading files
Relates to issue #591.
2023-06-07 15:57:33 +05:30
Laguna Du
1681ff2d2d Fix code formatting again. 2022-10-27 16:05:51 +08:00
Laguna Du
628361b6f7 Fix code formatting. 2022-10-27 15:55:36 +08:00
Laguna Du
befdcd34de fix post method. 2022-10-21 16:08:38 +08:00
Vladislav Oleshko
f505c152e1 Remove custom keys 2022-07-04 12:27:25 +03:00
Vladislav Oleshko
cbdb127b98 Small naming fixes 2022-07-04 10:50:14 +03:00
Vladislav Oleshko
a251928732 Add more comments to example, small fixes 2022-06-23 10:59:44 +03:00
Vladislav Oleshko
4c5807de81 Support char[]/char* for set/get, small fixes 2022-06-22 20:47:13 +03:00
Vladislav Oleshko
6b6eb5eb0b Merge branch 'master' into sessions 2022-06-22 15:21:34 +03:00
Vladislav Oleshko
29c657df8f Add session id preset, remove boost filesystem, small fixes 2022-06-21 15:38:22 +03:00
Luca Schlecker
df92d6d639 replace boost::lexical_cast with an equivalent based on std::stringstream. 2022-06-18 17:21:37 +03:00
Luca Schlecker
f3d00bbecf replace boost::asio with standalone asio. 2022-06-18 17:21:37 +03:00
The-EDev
48093184cf fixed problem with examples not compiling 2022-06-10 11:52:16 +03:00
The-EDev
2788a910b9 removed python examples 2022-06-10 11:52:16 +03:00
Vladislav Oleshko
b939dd4f1d Small fixes 2022-05-28 17:59:33 +03:00
Vladislav Oleshko
afa553a1b4 Add session examples 2022-05-28 16:42:40 +03:00
Vladislav Oleshko
f46bdc1a24 First iteration of sessions 2022-05-28 16:42:25 +03:00
Farook Al-Sammarraie
a6bf90fa8b Merge branch 'master' into blueprint-middleware 2022-05-23 09:43:17 +03:00
Farook Al-Sammarraie
e7007cfbce Merge branch 'master' into blueprint-middleware 2022-05-18 13:30:13 +03:00
Farook Al-Sammarraie
9f99be55e1 Merge branch 'master' into ws_close 2022-05-14 18:56:39 +03:00
The-EDev
78c7186897 Allowed Crow class to be passed to Websocket connection object 2022-05-14 12:05:06 +03:00
Vladislav Oleshko
d259999e6d Add blueprint middleware example 2022-05-07 23:24:42 +03:00
Vladislav Oleshko
337aff4726 Add cookie_parser example 2022-05-07 12:09:22 +03:00
The-EDev
84289dbe71 fix typos 2022-04-27 05:58:53 +03:00
Luca Schlecker
44f51f4750 Crow's current features (ssl and compression) can now be enabled through 'CROW_FEATURES' instead of their own CMake variables.
The default features are the ones Crow was installed with but can be overridden by setting 'CROW_FEATURES' before the 'find_package' call.

Signed-off-by: Luca Schlecker <luca.schlecker@hotmail.com>
2022-04-04 20:36:57 +02:00
The-EDev
a3c1af4b29 updated documentation in mkdocs and doxygen 2022-03-24 01:55:46 +03:00
Vladislav Oleshko
1c4416ef8d Fixes. Complete builder pattern. Add testcase 2022-03-08 16:33:08 +03:00
Vladislav Oleshko
6432d4486d Add example and test 2022-02-22 17:38:51 +03:00
Vladislav Oleshko
4f4e12c91a Add CROW_MIDDLEWARES macro 2022-02-08 20:11:02 +03:00
Vladislav Oleshko
f1dd5cc78a Add example_middleware to build 2022-02-08 19:37:24 +03:00
Vladislav Oleshko
69e9ad9c1e Run clang format 2022-02-01 23:21:07 +03:00
Vladislav Oleshko
e60714c0b2 Separate middleware for handlers 2022-02-01 22:49:41 +03:00
The-EDev
5c806252f0 formatted example.cpp 2021-12-14 06:55:59 +03:00
The-EDev
228e61d150 Added mustache lambda expansion 2021-12-10 05:17:25 +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
The-EDev
03e59aa446 improved bracing rules, commented out clang-format 14 rule 2021-11-27 15:28:50 +03:00
The-EDev
7f4b7c8ff9 created new rules, used bot to enforce rules in PRs 2021-11-25 14:45:38 +03:00
The-EDev
f8fabe32ae fixed runtime error in basic_example 2021-11-22 17:47:02 +03: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