alandefreitas
0ed09e59d9
Fix zlib warnings
...
fix #2461
2022-06-22 15:06:23 -03:00
alandefreitas
925043e1e8
Update Beast zlib streams
...
fix #2439
2022-06-03 17:45:32 -03:00
JackyYin
ca824f607c
Update zlib from 1.2.11 to 1.2.12
...
fix #2439
Because there is a CVE issue impact zlib before 1.2.12,
update zlib to avoid any related problems.
Please check the link below for detailed CVE information:
https://access.redhat.com/security/cve/CVE-2018-25032
2022-06-03 17:43:42 -03:00
sehe
740879a995
Add http::message_generator
2022-05-21 22:12:13 -07:00
sehe
84e689c447
Add buffers_generator
2022-05-21 22:12:13 -07:00
Vinnie Falco
746c1bb598
silence nodiscard warning in test
2022-05-21 22:12:13 -07:00
Vinnie Falco
6c9e9ea243
Tests are fat binaries
2022-05-21 22:12:13 -07:00
Glen Fernandes
95d9587ea7
Use span from Boost.Core
2022-04-23 00:28:26 -04:00
Glen Fernandes
24275ac0c6
Use static_string from Boost.StaticString
2022-04-17 12:30:52 -04:00
Martijn Otto
6ff7beae48
Add missing include for file_body test
...
close #2391
2022-03-09 16:35:24 +01:00
Richard Hodges
b5a94db2a5
WebSocket handshake response is deterministic on failure:
...
Add test for websocket handshake failure HTTP response
fix #2364
close #2365
2021-12-22 12:00:17 +01:00
Richard Hodges
cf29ecdb63
Fix open append mode for file_win32
2021-12-10 17:22:50 +01:00
Richard Hodges
88d5deec0f
Add tests for file open in append/append_existing mode
2021-12-10 17:15:13 +01:00
Richard Hodges
355dcfe502
Add individual tests to CMake workflow
...
close #2350
2021-12-09 14:27:18 +01:00
Richard Hodges
f65dc21335
Fix missing includes:
...
Files:
beast/_experimental/test/detail/stream_state.hpp
refs #2295
2021-09-03 21:02:45 +02:00
sdarwin
a9a09952a2
Update GitHub Actions CI file
...
closes #2301
2021-09-03 21:02:09 +02:00
Richard Hodges
7257d64a21
WebSocket test is deterministic
2021-04-06 19:24:51 +02:00
Richard Hodges
c3e83439dd
Fix incorrect websocket test ordering
2021-03-29 12:17:23 +02:00
Michael Haubenschild
31a1fb332a
Fix missing check for error code after header is parsed:
...
The missing error check leads to completely ignoring the body limit,
as the body limit is compared to the "Content-Length" header inside
the "finish_header" method.
closes #2201
2021-03-25 15:04:12 +01:00
dmorilha-twilio
8283a7df3f
Fix case where inflated content is larger than out buffer
...
closes #2191
2021-03-25 14:47:10 +01:00
Richard Hodges
523191d228
Add Github Actions CI
...
closes #2198
2021-03-19 00:40:18 +01:00
Richard Hodges
fae4c0e3c2
Parenthesise all uses of min() and max()
2021-03-16 10:02:47 +01:00
Richard Hodges
8913a3cd21
Add executor rebind to test::stream
...
closes #2139
2020-12-16 21:11:29 +01:00
Richard Hodges
822722c6c3
Revert removal of deprecated lowest_layer from test::stream:
...
This reverts commit 3fb693eda6 .
2020-12-01 17:52:53 +01:00
Richard Hodges
7e30dd7d76
Fix C++20 tests for basic_stream
...
fixes #2029
2020-11-04 15:22:05 +01:00
Giovanni Mascellani
9ce16bccbd
Fix typo in copyright headers.
...
closes #2102
2020-10-26 16:56:18 +01:00
Richard Hodges
bea31bfff6
Fix nullptr implicit cast on fields::set()
...
fixes #2085
2020-09-13 16:19:27 +02:00
Richard Hodges
91d9457ab9
Add Sec-* HTTP headers
...
fixes #2080
closes #2082
2020-09-07 17:26:34 +02:00
Richard Hodges
7811f4c52f
Fix assert when basic_stream used as underlying of ssl::stream with 0-length write
...
Fixes #2065
Closes #2078
2020-09-03 16:12:40 +02:00
Richard Hodges
9e6822773e
Fix erroneous error when HTTP body_limit is none
...
fixes #2070
closes #2073
2020-08-28 13:26:59 +02: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
Richard Hodges
5f1adfbc6d
Refactor get_io_context
2020-07-04 07:35:06 +02:00
Christopher Kohlhoff
107b01ad24
Update bind_handler test to use standard executor form
2020-07-04 07:35:01 +02:00
Christopher Kohlhoff
ca95101a88
Don't test deprecated hooks
2020-07-04 07:34:54 +02:00
Christopher Kohlhoff
06a0b18b1d
Use strand<> rather than legacy executor io_context::strand
2020-07-04 07:34:45 +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
14c3d50b57
Deprecate string_param (API Change):
...
API Changes:
`string_param`, which was previously the argument type when setting field values
has been replaced by `string_view`. Because of this, it is no longer possible to
set message field values directly as integrals.
Users are required to convert numeric arguments to a string type prior to calling
`fields::set` et. al.
Beast provides the non-allocating `to_static_string()` function for this purpose.
To set Content-Length field manually, call `message::content_length`.
fixes #1956
2020-06-12 17:33:20 +02:00
Richard Hodges
0fa658f644
Remove buffers_adapter.hpp (API Change):
...
API Changes:
The file `core/buffers_adapter.hpp` has been removed along with the deprecated
alias typename `buffers_adapter`. Affected programs should use
`core/buffers_adapator.hpp` and the type `buffers_adaptor`.
refs #1934
2020-06-03 12:59:56 +02:00
Richard Hodges
0fdf9cb4df
Parser body_limit is optional (API Change):
...
API Changes:
The signature of basic_parser<>::body_limit(n) has changed. It now accepts an
optional std::uint64_t. The caller may indicate that no body limit is required
by calling body_limit(boost::none). The default limits remain in place in order
to maintain 'safe by default' behaviour.
closes #1897
closes #1965
2020-05-29 20:28:22 +02:00
Richard Hodges
1054661723
Fix http read bytes_transferred (API Change)
...
fixes #1942
2020-05-20 15:54:52 +02:00
Richard Hodges
4be7c5aec3
Fix async_connect documentation
...
resolves #1903
2020-05-04 18:47:03 +02:00
Richard Hodges
638e2d1244
Fix compilation errors with msvc /std:c++latest
...
fixes #1916
fixes #1925
2020-05-01 07:08:31 +02:00
Richard Hodges
fda558e034
Fix standalone compilation error with std::string_view
...
fixes #1913
2020-04-30 21:00:00 +02:00
Richard Hodges
d016ff52af
Fix all async initiating functions with use_awaitable:
...
Add trait:
is_completion_token_for
Fixes for
buffered_read_stream
Add tests for
basic_stream
buffered_read_stream
flat_stream
http (all)
websocket (all)
resolves #1920
2020-04-28 20:48:00 +02:00
Richard Hodges
24cc4a7aee
Fix async_detect_ssl with use_awaitable
...
fixes #1918
2020-04-28 20:45:13 +02:00
Vinnie Falco
b2f3598313
Tidy up warnings
2020-04-20 08:09:11 -07:00
Vinnie Falco
483b00d20f
Fix msvc ICE in test
2020-03-29 13:22:34 -07:00
Richard Hodges
d12dcef52c
Fix Content-Length parsing
...
Fix #1880
2020-03-19 16:21:29 +01:00