Commit Graph

1526 Commits

Author SHA1 Message Date
Luca Schlecker
8d0d4c80ee Remove usage of boost::optional.
Move to pointers instead.
This implementation relies on the safe deletion of `nullptr`.
2022-06-18 17:21:37 +03:00
Luca Schlecker
5b1c5a9e9e removing some boost includes, fixing version checks and further phase out boost. 2022-06-18 17:21:37 +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
61d27e3b82 ci_map: replace boost::hash_combine with member function. 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
Luca Schlecker
c780642dd8 http_server: replace boost::asio::deadline_timer with a standalone asio equivalent. 2022-06-18 17:21:37 +03:00
Luca Schlecker
2f87414769 replace usage of boost::iequals with utility::string_equals. 2022-06-18 17:21:37 +03:00
Luca Schlecker
f3dba60efd utility: add string_equals function.
It serves as a replacement for boost::iequals.
2022-06-18 17:21:37 +03:00
Luca Schlecker
58583bf1a5 deboostify task_timer. 2022-06-18 17:21:37 +03:00
Luca Schlecker
78f764791e remove 'using namespace boost' declarations. 2022-06-18 17:21:37 +03:00
Luca Schlecker
053a449a5b link to standalone asio 2022-06-18 17:21:37 +03:00
MichaelSB
074fe2564b
Merge branch 'master' into response_check_file_type 2022-06-17 19:25:39 +02:00
Farook Al-Sammarraie
8c5deeedd3
fixed dead link in json guide 2022-06-17 18:39:19 +03:00
Michael Schreckenbauer
c593fbb3b4 only allow regular files in set_static_file_info, return 404 in all other cases 2022-06-15 09:20:11 +02:00
Farook Al-Sammarraie
68452a3995
Merge pull request #467 from erikaldsund/fix_failing_unittests_in_master_and_1.0
Fix failing unittests in master and 1.0
2022-06-13 23:35:16 +03:00
erik
3782044249 Fixed race condition: calling stop() immediately after async_run() and wait_for_server_start() could lead to deadlock
This is the case in some short, simple unit tests, such as "get_port".
2022-06-13 10:53:27 +02:00
erik
3fe1ee062a Fixed base64 test to not depend on terminating null-characters in binary strings
std::strings with binary data should always be created with the constructor
taking a char pointer and the length of the character data.
2022-06-13 09:27:30 +02:00
erik
f7758feab5 Make stream_response test independent of header size
The test was failing when built using my mingw64-11.2.0 toolset on the Windows
platform, on the 1.0+3 release.
2022-06-13 09:24:33 +02:00
Farook Al-Sammarraie
1d208aea39
Merge pull request #464 from aloussase/master
fix qs_parse eating first character in form keys
2022-06-12 15:08:29 +03:00
Alexander Goussas
6bac5d948b fix qs_parse eating first character in form keys 2022-06-11 21:44:53 -05:00
Farook Al-Sammarraie
53a2921f0d
Merge pull request #451 from CrowCpp/webpage_tutorial
Webpage tutorial
2022-06-10 12:36:48 +03:00
The-EDev
9b4e7410b5 addressed review problems + made dark theme more readable 2022-06-10 11:52:16 +03:00
The-EDev
48093184cf fixed problem with examples not compiling 2022-06-10 11:52:16 +03:00
Farook Al-Sammarraie
64ed1587ca fix capitalization mistake
Co-authored-by: Luca Schlecker <luca.schlecker@hotmail.com>
2022-06-10 11:52:16 +03:00
The-EDev
d599295731 added webpage tutorial and a build command for first app tutorial 2022-06-10 11:52:16 +03:00
The-EDev
2788a910b9 removed python examples 2022-06-10 11:52:16 +03:00
The-EDev
c17fe31dc1 Fixed footer privacy policy centering in pages other than home 2022-06-10 11:52:16 +03:00
Farook Al-Sammarraie
c37664febd
Merge pull request #459 from D7EAD/master
Fix dead link (404) under Setting Up / Building.
2022-06-09 21:32:10 +03:00
Dread
48a1b43b1d
Fix dead link (404) under Setting Up / Building.
Current link leads to a 404 on crowcpp.org for Getting Started. Commit fixes it with the updated link.
2022-06-09 13:53:33 -04:00
Farook Al-Sammarraie
ed87c65c83
Merge pull request #452 from MichaelSB/ws_no_read_after_close
do not try to read from websocket after sending and receiving the clo…
2022-06-04 16:15:51 +03:00
Michael Schreckenbauer
efee71745b do not try to read from websocket after sending and receiving the close frame 2022-06-04 12:14:46 +02:00
Farook Al-Sammarraie
017c6e3f04
Merge pull request #450 from MichaelSB/ws_erase_connection
erase websocket::connection from vector in App::remove_websocket()
2022-06-03 09:45:29 +03:00
Michael Schreckenbauer
5ef370c519 erase websocket::connection from vector in App::remove_websocket() 2022-06-03 07:44:57 +02:00
Farook Al-Sammarraie
64d2541e05
Merge pull request #447 from MichaelSB/ws_onaccept_userdata
allow setting userdata in onaccept of websocket-connection
2022-05-28 23:48:10 +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
The-EDev
16358b60ec
documented changes 2022-05-28 09:53:48 +03:00
Michael Schreckenbauer
65fcdea968 allow setting userdata in onaccept of websocket-connection 2022-05-27 14:06:12 +02:00
Farook Al-Sammarraie
0fb91aebbb
Merge pull request #408 from dranikpg/app-constructor
Generic app constructor
2022-05-24 00:46:14 +03:00
Vladislav Oleshko
946292747e Small fixes 2022-05-23 20:17:49 +03:00
Vladislav
94fa9f77f6
Merge branch 'master' into app-constructor 2022-05-23 20:12:55 +03:00
Farook Al-Sammarraie
a36d5c31d4
Merge pull request #403 from dranikpg/blueprint-middleware
Blueprint middleware
2022-05-23 10:08:09 +03:00
Farook Al-Sammarraie
a6bf90fa8b
Merge branch 'master' into blueprint-middleware 2022-05-23 09:43:17 +03:00
Farook Al-Sammarraie
c897101bf3
Merge pull request #442 from CrowCpp/qs-from-req
added creating qs from request body functionality + updated doc
2022-05-23 09:32:07 +03:00
The-EDev
cd67331fad
formatting 2022-05-21 14:51:48 +03:00
The-EDev
94a05b854a
changed functionality to avoid circular include 2022-05-21 12:32:32 +03:00
The-EDev
387c222ea2
added creating qs from request body functionality + updated doc 2022-05-20 22:36:32 +03:00
Farook Al-Sammarraie
8bc0a4d939
Merge pull request #425 from DeuSCaNoN/#421-Websockets-should-support-a-maximum-payload
Add rudimentary support for websocket max payload
2022-05-20 14:48:55 +03:00
The-EDev
f2b63f23f5
Fix for issue where app.stop() blocks when a websocket is open 2022-05-20 14:14:55 +03:00