Commit graph

655 commits

Author SHA1 Message Date
Hermann von Kleist
b6783d40be CMake: find_package(asio) if available 2023-04-04 14:23:05 +02:00
eidheim
84170850f3 Resolved conflicts 2023-04-04 12:50:54 +02:00
eidheim
5b729e982e Merge branch 'remove-target-link-options' of https://gitlab.com/stertingen/Simple-Web-Server 2023-04-04 12:17:31 +02:00
eidheim
8d9926c6c9 Merge branch 'refactor-boot-linking' of https://gitlab.com/stertingen/Simple-Web-Server 2023-04-04 12:13:56 +02:00
Hermann von Kleist
cde35e2abf Set CXX_STANDARD property for declared targets
CMake 3.8 provides the slightly cooler compile feature cxx_std_11, but
we are on 3.7 for now.
2023-03-31 17:03:23 +02:00
Hermann von Kleist
ff101fe41e Remove use of target_link_options which was introduced in CMake 3.13
However, target_link_libraries also supports link flags, which is
available for declared CMake version 3.7
2023-03-31 16:37:55 +02:00
Hermann von Kleist
17c1a8b65f Only link Boost libraries which are actually needed.
Asio does not require Boost.
Bosot.Asio requires Boost.System and optionally Boost.Regex.
The examples require Boost headers and Boost.Filesystem.
The CMake targets pull in their dependencies recursively, no need to
explicitly link the examples to Boost.System.
Boost.Thread should not be neede, according to the docs.
2023-03-31 16:29:24 +02:00
Hermann von Kleist
ee1a69ba4a Use system includes for asio and if used as subdirectory 2023-03-31 11:08:36 +02:00
Hermann von Kleist
fff70e5231 Use OpenSSL::* CMake targets 2023-03-09 10:48:11 +01:00
Hermann von Kleist
a8b7dab938 Use Boost::* CMake targets 2023-03-09 10:48:06 +01:00
Hermann von Kleist
0ec5a11473 Use CMake target Threads::Threads 2023-03-09 10:48:02 +01:00
Hermann von Kleist
244cfc4271 Require CMake 3.7 2023-03-09 10:47:53 +01:00
Cameron Gutman
2f29926dbb Fix build with Asio 1.13-1.17 2022-11-27 20:22:00 -06:00
Greg Glover
9662d87fbf asio already aliased for boost::asio 2022-11-16 22:58:43 -06:00
eidheim
850fe70873 Changed callbacks type from std::vector with std::list in send_from_queue() 2022-11-10 18:14:30 +01:00
eidheim
3e87ac5faf Renmaed read_write_strand to write_strand 2022-11-09 13:31:58 +01:00
eidheim
eca0e1d622 Wrapped async_write calls in a strand since these calls might not be safe to call outside of the context runners if tls is used 2022-11-09 10:51:14 +01:00
eidheim
f28b183f0a Fixed ci for doxygen pages 2022-10-06 13:12:51 +02:00
eidheim
cf85457894 Merge https://gitlab.com/CosmicPegasis/Simple-Web-Server 2022-10-06 13:08:32 +02:00
eidheim
edf99c6426 Fixed OPENSSL_ROOT_DIR for MacOS m1 and m2 setups 2022-09-30 11:59:55 +02:00
Aviral Singh
5f7ed3d984 Fix Doxygen output 2022-09-27 15:49:42 +05:30
Andrei Gheorghe
09303d5b94 Updated the write_header method to not write Content-Length: 0 for SSE resppnses.
There was a possible work-around - add the Transfer-Encoding: "chunked" header - but this is not correct as SSE and chunked are two different things.
2022-09-19 14:57:28 +00:00
eidheim
6aafa6a90a Added missing header in crypto.hpp 2022-09-05 14:57:19 +02:00
eidheim
632ee8d88c Changed http to https output in https_examples.cpp 2022-08-16 11:02:09 +02:00
eidheim
88569844ea Improved SSL_R_SHORT_READ check 2022-08-16 10:58:59 +02:00
woe
adbdc6fcda Ignore SSL_R_SHORT_READ 2022-06-16 14:41:04 +02:00
eidheim
c52ebc2e60 Renamed DEPRECATED to SW_DEPRECATED to avoid name conflicts 2022-05-31 15:12:14 +02:00
eidheim
8598036b73 Updated crypto.hpp: deprecated functions replaced 2022-05-31 15:09:54 +02:00
Hungpo DU
bdb105712b Set a timeout for https async_resolve 2022-02-18 12:25:25 +08:00
Vitalii Trubchaninov
0087f7082e Don't access this before alive check 2021-11-09 01:57:06 -05:00
eidheim
8c8045a696 Client: enables TLS 1.3 2021-04-13 14:38:01 +02:00
eidheim
60a332e124 Reverted context::tls_server to context::ssl23_server change, and fixed stretch CI 2021-04-13 14:24:08 +02:00
eidheim
972ef8ebf9 Merge https://gitlab.com/Eswcvlad/Simple-Web-Server 2021-04-13 14:19:40 +02:00
eidheim
c97be4caab Added another client parse host_port test 2021-04-09 19:34:26 +02:00
eidheim
bab4b309ca Client: added parsing of host specified with IPv6 address 2021-04-09 14:33:43 +02:00
Vlad Lipskiy
d60136d6b2 Replaces context::tls_server with context::ssl23_server to support older boost versions.
tls, tls_client and tls_server contexts were added only in boost 1.63.
2021-04-09 13:17:00 +03:00
eidheim
c896342127 Removed Debian jessie from CI 2021-04-09 09:19:18 +02:00
Vlad Lipskiy
13ab200372 Enables TLS 1.3 support in server_https. 2021-04-02 18:01:44 +03:00
eidheim
1bb89e1e8e Fixes #317: Make use of ASIO_STANDALONE when using standalone asio in order to compile on older asio versions without boost 2021-03-26 10:11:39 +01:00
eidheim
cc0dc20947 Corrected documentation of Server<HTTPS> constructor 2021-02-17 08:59:25 +01:00
eidheim
d6b057a673 Corrected test names in .gitignore 2020-11-29 18:25:13 +01:00
eidheim
dd6094b91c Minor style format correction 2020-10-26 14:28:28 +01:00
Jørgen Sverre Lien Sellæg
898b6abd1b add prefix to common test names 2020-10-09 15:17:15 +02:00
eidheim
190e3498c3 Fixes #305: no longer forces on BUILD_TESTING 2020-09-22 16:41:47 +02:00
eidheim
14c0e3a3a3 Applied style format 2020-09-16 14:53:02 +02:00
eidheim
a0cc9e81c7 Minor cleanup of QueryString::parse 2020-08-31 13:12:21 +02:00
woe
987e8358f9 Allow "?" in URL body
See https://stackoverflow.com/questions/2924160/is-it-valid-to-have-more-than-one-question-mark-in-a-url
2020-08-27 15:10:06 +02:00
woe
8a877027a1 Handle "=" in URL query parameters (i.e. site.com?compare=1=2& 2020-08-27 15:08:55 +02:00
eidheim
5d65a5d89b Fixes another compilation issue: make_steady_timer now returns std::unique_ptr 2020-08-26 11:43:28 +02:00
eidheim
ec27950d68 Fixed compilation issue: also added make_steady_timer for older (boost.)asio versions 2020-08-26 11:37:09 +02:00