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
db2f0052ff
basic_stream dtor cannot throw
...
fix #1688
2019-08-28 16:02:31 -07:00
Aurelien Chartier
70f232f6dd
Fix signed/unsigned mismatch in file_stdio::seek
...
fix #1687
2019-08-28 16:02:31 -07:00
Damian Jarek
0b04c82e2b
Fix unused variable warning in multi_buffer
...
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-07-08 20:28:58 +02:00
Damian Jarek
261193fc9c
Remove unused functions in impl/static_string.hpp
...
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-07-08 20:28:58 +02:00
Vinnie Falco
89c922e02b
Fix deallocate in multi_buffer
2019-07-03 17:21:19 -07:00
Vinnie Falco
ce1c6d3222
Fix multi_buffer allocation alignment
2019-07-01 12:49:03 -07: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
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
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
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
edca7dd18e
Remove redundant use of asio::coroutine in flat_stream
...
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-06-19 17:53:34 +02:00
Vinnie Falco
e9781b225e
Fix flat_buffer copy members
...
fix #1621
2019-05-29 21:14:14 +02:00
Damian Jarek
8198571555
Use if statement in basic_stream:
...
An `if` statement is cheaper to instantiate without additional runtime
cost when optimizations are enabled.
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-05-27 22:15:49 +02:00
Damian Jarek
3fa468f840
Add 1-element specialization for buffers_cat
...
`buffers_cat` now supports 1 or more buffers sequences.
Close #1280
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-05-20 15:33:43 +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
Damian Jarek
0f77bd7149
Remove the use of bind_executor in basic_stream:
...
Use the executor hook instead of `bind_executor` to avoid template
instantiations.
Signed-off-by: Damian Jarek <damian.jarek93@gmail.com >
2019-05-19 22:32:43 +02:00
Vinnie Falco
4f464ccaeb
Tidy up file_stdio for VS2015
2019-03-30 14:14:59 -07:00
Denis Glazachev
24ccdd243a
Fix some typos
2019-03-30 11:12:04 -07:00
Vinnie Falco
965c21615a
MSVC uses ::fopen_s
2019-03-29 20:42:44 -07:00
Gregor Jasny
0033b7c1e4
Android: Use compiler pre-defined __ANDROID__
...
The ANDROID define us usually originationg from he build system
(like CMake, ndk-build, etc.). But some buildsystems like Bazel
do not set it which brakes Android platform detection.
Better use __ANDROID__ (like boost predef does) which is
predefined by the compiler if targeting Android.
2019-03-14 09:55:22 -07:00
Vinnie Falco
cfbdce3e5c
Constrain to_static_string to integers
2019-03-12 13:44:48 -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
cec63d923c
Tidy up appveyor error
2019-03-02 07:33:57 -08:00
Vinnie Falco
92ad50a8e7
Destroy abandoned websocket ops on shutdown
...
fix #1358
2019-02-27 16:44:01 -08:00
Vinnie Falco
7953ac281f
Pass references as pointers to async_initiate
2019-02-26 07:21:05 -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
59bda5d9c6
basic_parser is abstract, not CRTP (API Change):
...
* `basic_parser` now uses pure virtual member functions instead
of the curiously recurring template pattern.
Actions Required:
* Change uses of the `basic_parser` type to omit the `Derived`
template parameter
* Classes derived from `basic_parser` no longer need to friend
the base.
* Virtual functions in the derived class may be marked `override`.
2019-02-23 11:15:59 -08:00
Vinnie Falco
d4dddec1c0
Reduce template instantiations
2019-02-23 08:56:57 -08:00
Vinnie Falco
955354b9dd
Enable split Beast compilation for tests
2019-02-22 17:27:27 -08:00
Vinnie Falco
6ada618c12
Check BOOST_NO_CXX11_THREAD_LOCAL
2019-02-21 11:09:02 -08:00
Vinnie Falco
d08cc82e15
Use async_initiate
2019-02-21 06:39:35 -08:00
Vinnie Falco
eea3929b26
Concept check tidying
2019-02-20 19:19:59 -08:00
Vinnie Falco
fd4b080a4a
RatePolicy documentation
2019-02-20 15:30:03 -08:00
Vinnie Falco
a5adc328e4
basic_stream uses async_initiate
2019-02-19 16:27:27 -08:00
Vinnie Falco
c5b655c954
basic_stream connects are members
2019-02-19 16:27:27 -08:00
Vinnie Falco
0ad7390e94
Use async_initiate in basic_stream
2019-02-19 16:27:26 -08:00
Vinnie Falco
23a7bcc67e
Add RatePolicy to basic_stream
2019-02-19 16:23:30 -08:00
Vinnie Falco
6baa607295
Fixes to support Asio changes (API Change):
...
This adjusts Beast's interfaces and implementation to match
the changes in Boost.Asio.
2019-02-19 16:23:30 -08:00
Vinnie Falco
fdaf2ea7e1
Rename to async_op_base::invoke_now
2019-02-16 13:36:01 -08:00
Vinnie Falco
5ed9f7712e
basic_stream uses boost::shared_ptr
2019-02-14 12:54:32 -08:00
Vinnie Falco
65cbc158cf
Tidy up example docs and some names
...
fix #1450
2019-02-14 07:53:38 -08:00
Vinnie Falco
45d722874f
Use tcp_stream, HTTP timeouts in advanced servers
2019-02-10 11:43:15 -08:00