2
0
mirror of https://github.com/boostorg/beast.git synced 2026-01-21 16:52:12 +00:00

107 Commits

Author SHA1 Message Date
Mohammad Nejati
b687af73c3 replace BOOST_STATIC_ASSERT with BOOST_CORE_STATIC_ASSERT
Closes #3048
2025-10-24 13:25:21 +03:30
Mohammad Nejati
94cbb0339a field constants are updated 2025-10-16 15:32:39 +03:30
Mohammad Nejati
41c1abb402 Add SSL/TLS Certificate section to documentation
Closes #2910
2025-02-26 18:31:12 +03:30
Mohammad Nejati
0451018f25 CMake test targets are prefixed with boost_beast_
Closes #2984
2025-02-13 20:09:44 +03:30
Mohammad Nejati
9c184406ea Register tests in CMakeLists 2024-11-25 11:41:40 +03:30
Mohammad Nejati
827ecf5e93 Organize source files in CMakeLists with source_group 2024-11-25 11:41:40 +03:30
Mohammad Nejati
75e45287fb Refactor CMakeLists
Closes #2471
Closes #1816
2024-11-25 11:41:40 +03:30
Mohammad Nejati
0886fd891a Suppress -Wunused-parameter warnings in tests 2024-10-26 15:33:15 +03:30
Mohammad Nejati
3ddcf4ed38 Jamfile cleanup 2024-09-04 22:37:14 +03:30
René Ferdinand Rivera Morell
2bda7870fe Add support for modular build structure. (#2905)
* Use beast exclusive valgrind feature.

* Make the library modular usable.

* Switch to library requirements instead of source. As source puts extra source in install targets.

* Add Beast root dir for includes. As some tests refer to files relative to that.

* Replace relative docca refs with project based.

* Avoid mtuliple openssl configurations.

* Always declare openssl. If it's empty and duplicate it will be ignored.

* Add missing import-search for cconfig/predef checks.

* Add requires-b2 check to top-level build file.

* Bump B2 require to 5.2

* Update copyright dates.

* Move inter-lib dependencies to a project variable and into the build targets.

* Update build deps.

* Update build deps.

* The http/client/body example uses the source header from json instead of the linked library.
2024-09-01 11:26:02 +03:30
Mohammad Nejati
e55b559ed3 Fix -Wmissing-braces warnings 2024-06-09 18:23:12 +03:30
Mohammad Nejati
b502789d89 Fix -Wunused-function warnings 2024-06-01 18:54:19 +03:30
Mohammad Nejati
4089e27357 net::ssl::stream is canonical in snippets 2024-05-31 16:45:52 +03:30
Mohammad Nejati
cf72589ae9 Add 'SSL/TLS Shutdown Procedure' section to documentation
Closes #2868
2024-05-28 23:39:48 +03:30
Klemens
99bceb5bff examples & tests use context instead of coroutine. 2023-02-02 23:27:49 +08:00
Klemens
3ebff60b1a beast support per-op cancellation
- websocket supports cancellation.
 - Iterating test for ws cancellation.
 - Only terminal cancellation is forwarded by default.
 - basic_stream supports cancellation.
 - supported cancellation is documented.
 - http cancellation additions.
 - Added cancellation_slot tests to http, utils and saved_handler.
 - Added post to write.cpp, to avoid SIGSEV in test.
 - Refresher describes cancellation in more detail.
2022-10-27 22:56:19 +08:00
Richard Hodges
a9b5bf343d Examples require tracked 2020-07-04 08:22:57 +02:00
Richard Hodges
de1e63c597 Fix style errors 2020-07-04 08:12:10 +02:00
Richard Hodges
060f59685c Support BOOST_ASIO_NO_TS_EXECUTORS 2020-07-04 07:35:14 +02:00
Christopher Kohlhoff
55302a3f8f New name for polymorphic executor. Trait for detecting new executors 2020-07-04 07:34:34 +02:00
Richard Hodges
fe9951c980 Document websocket sub-protocols 2020-03-28 00:06:06 +01:00
Vinnie Falco
5597391e41 Fix pragma warning 2019-12-07 13:19:59 -08:00
Roel Standaert
dcc30bcc40 https_get example sends the Host header:
close #1751

If you try the https_get example with the Server header, servers will
respond with 400 Bad Request. This example works as it should when it
uses the Host header.
2019-11-02 08:26:06 -07:00
Vinnie Falco
7cc8759261 Async init-fns use the executor's default token 2019-10-31 05:47:05 -07:00
Vinnie Falco
0f932d589b Silence unused variables 2019-10-04 18:57:48 -07:00
Damian Jarek
8d5bd286d7 Replace uses of net::spawn with asio::spawn
`asio::spawn` is an extension, which is not part of
the Networking TS, so the `net` alias is not appropriate in this case.

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2019-06-19 17:53:35 +02:00
Damian Jarek
c254b4fcfb Remove uses of the deprecated buffers function
Fix: 1607
Close: 1608

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2019-05-19 22:32:37 +02:00
Vinnie Falco
4e90183bda Check defined(BOOST_MSVC) 2019-03-29 20:42:44 -07:00
Vinnie Falco
18bf9b4037 Tidy up a doc code snippet 2019-03-28 09:53:27 -07:00
Vinnie Falco
61fcd9ef6f Refactor Jamfiles to work with release layout 2019-03-24 09:18:02 -07:00
Vinnie Falco
b38901887b cmake: Use static libs to speed up builds 2019-03-23 17:50:38 -07:00
Damian Jarek
222dcf7b18 Jamfile cleanup:
- Don't set the global link settings (`<link>`) to avoid dependency
ordering issues in the future.
- Allow the user to decide on the link settings for dependencies
(filesystem/coroutine).
- Make dependencies in examples explicit.
- Remove dependency of examples on Boost.Filesystem (was not used there).
- Deduplicate build settings.
- Speed up test compilation by avoiding rebuilding of main test file.

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2019-03-21 17:23:49 +01:00
Damian Jarek
8869ec5681 Use secure TLS/SSL versions:
TLS1.2 can be used instead, it is available in all currently
supported versions of OpenSSL.

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2019-03-14 09:56:50 -07:00
Vinnie Falco
4ad9d4a0ba Doc tidying 2019-03-07 12:56:40 -08:00
Vinnie Falco
45353a7f04 handler_ptr is deprecated (API Change):
* `handler_ptr` is deprecated and should not be used.

Actions Required:

* Replace use of `handler_ptr` with `stable_async_base`
  and `allocate_stable`.
2019-03-06 10:38:08 -08:00
Vinnie Falco
e073a9e7fc Tidy up docs 2019-03-05 20:15:07 -08:00
Vinnie Falco
9f2b0ce1db Rename to buffer_bytes 2019-03-05 11:09:53 -08:00
Vinnie Falco
6ccdcdf51d buffer_size is in buffer_traits.hpp 2019-03-05 11:09:50 -08:00
Vinnie Falco
8e2620e2b1 Doc tidy 2019-03-05 08:00:14 -08:00
Vinnie Falco
fca4b3ae10 make_strand is in net:: 2019-03-02 07:33:57 -08:00
Vinnie Falco
ad48837872 Fix warning 2019-02-27 13:13:25 -08:00
Vinnie Falco
15cd69514d Doc work 2019-02-27 06:52:54 -08:00
Vinnie Falco
8f9eed1faf stream_base::timeout::suggested is a nested function 2019-02-27 06:52:45 -08:00
Vinnie Falco
7953ac281f Pass references as pointers to async_initiate 2019-02-26 07:21:05 -08:00
Vinnie Falco
ab9a4c66e0 Doc work 2019-02-26 07:21:04 -08:00
Vinnie Falco
0647c902ac role_type is in boost/beast/core/role.hpp (API Change):
This enumeration is now part of the library core and
not specific to websocket.
2019-02-26 07:20:46 -08:00
Vinnie Falco
81f33a0f89 Rename to async_base, stable_async_base 2019-02-26 07:20:08 -08:00
Vinnie Falco
5dd01155e6 Doc work 2019-02-25 08:26:42 -08:00
Vinnie Falco
d9400ce618 Refactor docs 2019-02-24 18:46:27 -08:00
Vinnie Falco
f92999b613 Doc work 2019-02-23 12:04:48 -08:00