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
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
55302a3f8f
New name for polymorphic executor. Trait for detecting new executors
2020-07-04 07:34:34 +02:00
Christopher Kohlhoff
22f2f5dcf4
Handler invoke and allocation hooks are deprecated
2020-07-04 07:34:21 +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
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
Cristian Morales Vega
2c2e2c0812
detail::ostream_buffer is final:
...
The Clang Static Analyzer was complaining about the fact the destructor
calls a virtual function. This silences it.
close #1862
2020-02-29 10:43:05 -08:00
Richard Hodges
5a82673089
Add missing include
2020-02-29 10:43:00 -08:00
Richard Hodges
69ef525d5c
Refactor buffers_adaptor
2020-02-29 10:43:00 -08:00
Richard Hodges
416cc40422
ostream_buffer satisfies preconditions of DynamicBuffer_v1::commit:
...
close #1806
2020-01-23 16:24:40 +01: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
32bbd38387
Support Concepts for completion token params
2019-10-31 06:47:22 -07:00
Vinnie Falco
9f468ec1c1
Use automatically deduced return types for all async operations:
...
C++14 or later is required to support completion tokens that use
per-operation return type deduction. For C++11, a completion
token's async_result specialisation must still provide the nested
typedef `return_type`.
2019-10-31 06:47:22 -07:00
Vinnie Falco
c5d8c7b64c
Multiple I/O of the same type is not supported
...
fix #1682
2019-08-29 10:55:47 -07:00
Damian Jarek
dc6602b5d3
Fix header-only compilation errors in some configurations
...
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-07-08 20:28:58 +02:00
Vinnie Falco
9e0564044f
Tidy up buffers_range
2019-07-01 12:49:03 -07:00
Damian Jarek
a7e932b13c
Remove redundant includes in websocket
...
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-07-01 19:43:43 +02:00
Damian Jarek
9847fd6e69
Remove redundant includes in core
...
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-06-24 11:07:41 -07: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
Damian Jarek
1a720c8354
Qualify calls to beast::iequals in basic_parser.ipp
...
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-06-23 16:58:15 +02:00
Vinnie Falco
61721544f0
Style tidying
2019-06-19 11:37:20 -07:00
Damian Jarek
214fa12f21
Use beast::read_size in detail::read
...
This allows using the read size hint and deduplicates a fairly
complicated piece of code.
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-06-19 17:53:36 +02:00
Damian Jarek
f10dc38ae6
Replace uses of net::coroutine with asio::coroutine
...
`asio::coroutine` 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
a0d5baf22a
Improve performance of http::string_to_verb
...
`operator==` performs better than the hand-written comparison routine.
fix #1636
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-06-19 17:53:35 +02:00
Damian Jarek
da61b4e52c
Move char_buffer into a separate file
...
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-06-19 17:53:34 +02:00
Damian Jarek
d5f5f1467f
Enable split compilation in http::basic_fields
...
Moved functions,that are independent of template argument, into
an *.ipp file.
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-06-19 17:53:33 +02:00
Damian Jarek
e98fc22bec
Remove redundant template in service_base
...
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-05-19 22:32:43 +02:00
Vinnie Falco
e53ccf251c
Fix min/max on MSVC
...
fix #1578
2019-04-19 11:36:00 -07:00
Damian Jarek
8703038e37
launder pointers:
...
close #1570
`std::launder` must be used whenever placement-new of an unknown type
is performed and the result of the placement-new expression is discarded.
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-04-15 08:21:48 -07:00
Vinnie Falco
27c572fbfa
Tidy up declval in some traits
2019-04-01 17:35:44 -07:00
Vinnie Falco
61fcd9ef6f
Refactor Jamfiles to work with release layout
2019-03-24 09:18:02 -07: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
a3f0ea3573
Move macro from config.hpp
2019-03-01 10:47:09 -08:00
Vinnie Falco
c510662c67
Add test::stream::service
2019-02-27 14:05:16 -08:00
Vinnie Falco
d0cf40d5b2
Fix as-if post
2019-02-27 06:53:22 -08:00
Vinnie Falco
7953ac281f
Pass references as pointers to async_initiate
2019-02-26 07:21:05 -08:00
Vinnie Falco
81f33a0f89
Rename to async_base, stable_async_base
2019-02-26 07:20:08 -08:00
Vinnie Falco
d4dddec1c0
Reduce template instantiations
2019-02-23 08:56:57 -08:00
Vinnie Falco
46eb006757
Tidy up docs
2019-02-22 19:46:29 -08:00