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
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
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
sdarwin
a9a09952a2
Update GitHub Actions CI file
...
closes #2301
2021-09-03 21:02:09 +02:00
Richard Hodges
8913a3cd21
Add executor rebind to test::stream
...
closes #2139
2020-12-16 21:11:29 +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
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
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
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
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
Cristian Morales Vega
75da7a522e
Fix ostream flush:
...
fix #1853 , close #1859 , close #1866
After calling the DynamicBuffer commit() function the
buffer returned from prepare() can be invalidated but
the ostream kept using it.
2020-02-29 10:43:20 -08:00
Richard Hodges
ea078cfcdb
Refactor flat_static_buffer
2020-02-29 10:43:00 -08:00
Richard Hodges
69ef525d5c
Refactor buffers_adaptor
2020-02-29 10:43:00 -08:00
Richard Hodges
eebf5773ed
Rename to DynamicBuffer_v0:
...
The Beast variation of Asio's DynamicBuffer_v1
is now named DynamicBuffer_v0.
2020-02-29 10:42:32 -08:00
Vinnie Falco
c340697171
Refactor multi_buffer
2020-02-29 10:42:30 -08:00
Richard Hodges
7701bf8738
moved-from container with unequal allocator will not be modified:
...
Affects:
- flat_buffer
- multi_buffer
- http::fields
fixes #1832
closes #1834
2020-02-04 18:36:53 +01:00
Mika Fischer
dfb44236e9
file_stdio supports unicode paths:
...
fix #793 , close #1791 , close #1793
2019-12-29 08:58:13 -08:00
Mika Fischer
f0c92f472c
file_win32 supports UTF-8 paths:
...
fix #793 , close #1791 , close #1793
This brings file_win32 in sync with the documentation.
Previously, the path passed to open worked if encoded in the system
codepage (which is almost never UTF-8).
Now, the path must be encoded as UTF-8, as stated in the
documentation.
Adapt file tests so that for file_win32 all paths include a unicorn
character.
2019-12-29 08:56:02 -08:00
Vinnie Falco
54ea61fd42
Use docca master branch
2019-12-17 11:11:53 -08:00
Vinnie Falco
2f7ddb69ee
Use plain throw in unit test framework
2019-12-06 19:48:27 -08:00
Vinnie Falco
21137f2708
Disable broken tests
2019-10-31 06:49:55 -07:00
Vinnie Falco
087bcc4ef5
Use the executor type in basic_stream timer
...
fix #1589
2019-10-15 15:48:42 -07:00
Vinnie Falco
0f932d589b
Silence unused variables
2019-10-04 18:57:48 -07:00
Damian Jarek
373642886a
Workaround for miscompilation in MSVC 14.2
...
`insert()` erroneously produces the string "12__343" in
Release mode on MSVC 14.2.
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-07-08 20:37:42 +02:00
Damian Jarek
2c2ac8027c
Fix unused variable warnings in tests
...
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-07-08 20:28:58 +02:00
Damian Jarek
7e8af58307
Move detail::base64 helpers to tests
...
These functions were only used in tests.
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-06-24 11:07:41 -07:00
Damian Jarek
b8b04f8f39
Cleanup transitive includes in beast/core/detail/type_traits.hpp
...
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-06-24 11:07:41 -07:00
Vinnie Falco
e9781b225e
Fix flat_buffer copy members
...
fix #1621
2019-05-29 21:14:14 +02:00
Damian Jarek
85adb6ca2f
Fix buffers_cat iterator tests
...
The default constructed iterators tests were never run.
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-05-20 15:34:20 +02:00
Damian Jarek
9909fada29
allocator_traits::construct is used for user-defined types:
...
It should only be called when constructing a user-provided type.
Close #1332
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-05-20 15:29:21 +02:00
Vinnie Falco
0a334d96d1
member get_executor const-correctness
...
fix #1559
2019-04-19 11:18:55 -07:00
Damian Jarek
ce986118f8
Fix async_base immediate completion
...
`complete(false, ...)` used the wrong executor when an async operation
completed immediately, potentially executing the completion handler on
the IO executor in some cases.
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-04-05 05:08:31 -07:00