Vinnie Falco
1b616fa1da
Tidy up and make get_lowest_layer public
...
fix #379
2017-05-24 12:36:08 -07:00
Vinnie Falco
612e616978
Require Boost 1.58 or later
2017-05-24 12:36:08 -07:00
Vinnie Falco
1b1daa7b29
Tidy up read_size_helper and dynamic buffers
...
fix #376
2017-05-24 12:36:07 -07:00
Vinnie Falco
bf0145da67
Use BOOST_THROW_EXCEPTION
...
fix #370
2017-05-24 12:36:07 -07:00
Vinnie Falco
e76281867d
Add GitHub issue template
2017-05-24 12:36:06 -07:00
Vinnie Falco
dab679cb0a
Set version to 43
2017-05-22 04:45:01 -07:00
Vinnie Falco
386b817b38
Reformat README.md QR code
2017-05-22 04:44:58 -07:00
Vinnie Falco
50e5123996
Additional constructors for consuming_buffers
2017-05-21 07:55:02 -07:00
Vinnie Falco
f7289b9133
Add write limit to test::string_ostream
2017-05-21 07:55:02 -07:00
Vinnie Falco
3aa87e076c
Tidy up buffer_prefix overloads and test
2017-05-21 07:55:01 -07:00
Vinnie Falco
bee583cac1
Fix strict aliasing warnings in buffers_view
2017-05-21 07:55:00 -07:00
Vinnie Falco
6b54d3ad0f
Require Boost 1.64.0
2017-05-21 07:54:45 -07:00
Vinnie Falco
76f1084ecb
Set version to 42
2017-05-18 19:39:01 -07:00
Vinnie Falco
0bdb148765
Make buffers_view a public interface
2017-05-18 19:38:58 -07:00
Vinnie Falco
338fc81623
Add formal review notes
2017-05-18 19:38:58 -07:00
Vinnie Falco
784f965a69
Fix javadoc typo
2017-05-15 11:31:32 -07:00
Vinnie Falco
823aee222a
Set version to v41
2017-05-14 15:01:21 -07:00
Vinnie Falco
88adbdd95e
Remove handler helpers, tidy up hook invocations (API Change)
2017-05-14 15:00:52 -07:00
Vinnie Falco
4974af2972
Rename prepare_buffer(s) to buffer_prefix (API Change)
2017-05-14 15:00:52 -07:00
Vinnie Falco
ebd459ba0c
Tidy up websocket::close_code enum and constructors
...
fix #359
2017-05-14 15:00:51 -07:00
Vinnie Falco
c3fd6f9087
Tidy up formal parameter names
...
fix #361
2017-05-14 15:00:51 -07:00
Vinnie Falco
210cd707dd
Remove coveralls integration
2017-05-14 15:00:50 -07:00
Vinnie Falco
d81196294f
Concept revision and documentation (API Change):
...
The concept type traits are renamed for consistency,
and consolidated into a single header file <beast/core/type_traits.hpp>
A new section, Core Concepts, is added to the documentation describing all
of the core utility classes and functions. This also includes a complete
explanation and sample program describing how to write asynchronous initiation
functions and their associated composed operations.
2017-05-14 15:00:34 -07:00
Vinnie Falco
bdae92a8b4
Replace asynchronous helper macros with template aliases (API Change)
2017-05-12 17:40:00 -07:00
Vinnie Falco
df95a09024
Move prepare_buffers to prepare_buffer.hpp (API Change)
...
fix #338
2017-05-10 13:17:28 -07:00
Vinnie Falco
787de2111b
Remove placeholders (API Change)
2017-05-10 13:08:43 -07:00
Vinnie Falco
c59b5440f0
Trim Appveyor matrix rows
2017-05-10 10:06:09 -07:00
Vinnie Falco
b7184f3a69
Return http::error::end_of_stream on HTTP read eof (API Change)
...
fix #350
2017-05-10 10:03:51 -07:00
Vinnie Falco
f2d825594e
Set version to 40
2017-05-10 09:17:54 -07:00
Vinnie Falco
40b919449f
Tidy up .travis.yml:
...
* Combine address and undefined sanitizers
* Additional targets for older gcc and 32 bit
2017-05-10 09:17:37 -07:00
Vinnie Falco
9b240c71af
Fix basic_streambuf movable trait
2017-05-10 05:36:00 -07:00
Vinnie Falco
76a2617d2e
Consolidate get_lowest_layer in type_traits.hpp
...
fix #347
2017-05-09 19:38:49 -07:00
Vinnie Falco
6d003216b7
Add to_static_string:
...
This function converts integers to their decimal
representation as a static string.
In addition, static_string::resize no longer initializes
characters if the new size is larger.
2017-05-09 19:38:49 -07:00
Vinnie Falco
f88813620c
Set version to 39
2017-05-09 18:27:24 -07:00
Vinnie Falco
47c82b5cbc
Better travis deps
2017-05-09 18:27:21 -07:00
Vinnie Falco
4ed7865798
Squelch openssl spurious leak and memory errors
2017-05-09 18:27:21 -07:00
Vinnie Falco
b6bc26f34c
Fixed braced-init error with older gcc
2017-05-09 07:23:10 -07:00
Vinnie Falco
59b2f8fefd
ostream workaround for gcc 4.8.4
2017-05-09 07:23:10 -07:00
Vinnie Falco
8363d869a0
Increase ostream test coverage
2017-05-09 07:23:10 -07:00
Vinnie Falco
5631936106
Tidy up HTTP reason_string (API Change):
...
fix #182
reason_string() is now located in <beast/http/message.hpp>
and returns a string view rather than char const*.
2017-05-09 07:23:10 -07:00
Vinnie Falco
2bf515069d
Harmonize concepts and identifiers with net-ts (API Change):
...
fix #321
This synchronizes identifier names and some implementation details
with the Networking-TS document and reference implementation.
The following interfaces have changed:
* async_completion
* is_buffer_sequence (removed)
* is_const_buffer_sequence (was is_ConstBufferSequence)
* is_dynamic_buffer (was is_DynamicBuffer)
* is_mutable_buffer_sequence (was is_MutableBufferSequence)
* async_result (new)
* BEAST_HANDLER_TYPE macro (new)
* BEAST_INITFN_RESULT_TYPE macro (new)
Filename changes:
* async_result.hpp (was async_completion.hpp)
2017-05-09 07:23:09 -07:00
Vinnie Falco
728e9d8e70
Tidy up basic_parser javadocs
2017-05-09 07:23:09 -07:00
Vinnie Falco
1c9067b1da
Use beast::string_view alias
2017-05-09 07:23:09 -07:00
Vinnie Falco
771c5cade5
Doc fixes and tidying
2017-05-09 07:23:08 -07:00
Vinnie Falco
e2b5c317fc
Rename to buffered_read_stream (API Change):
...
dynabuf_readstream is renamed to buffered_read_stream.
2017-05-09 07:23:08 -07:00
Vinnie Falco
a753f1cb38
Rename to static_buffer, static_buffer_n (API Change):
...
These classes are renamed:
* static_streambuf to static_buffer
* static_streambuf_n to static_buffer_n
2017-05-09 07:23:08 -07:00
Vinnie Falco
24b66864d8
Rename to flat_buffer, basic_flat_buffer (API Change):
...
These classes are renamed:
* flat_streambuf to flat_buffer
* basic_flat_streambuf to basic_flat_buffer
2017-05-09 07:23:08 -07:00
Vinnie Falco
69259efe87
Rename to multi_buffer, basic_multi_buffer (API Change):
...
These classes are renamed:
* streambuf to multi_buffer
* basic_streambuf to basic_multi_buffer
2017-05-09 07:23:07 -07:00
Vinnie Falco
bef9ae11ea
New buffers() replaces to_string() (API Change):
...
A new function, buffers(), returns an implementation defined object
which wraps a ConstBufferSequence and supports formatting to a
std::ostream.
The function to_string is removed, as the new implementation allows
conversion to string using boost::lexical_cast on the return value
of the call to buffers(). Streaming to an output stream is more
efficient: no dynamic allocations are performed.
Example:
streambuf sb;
std::cout << buffers(sb.data()) << std::endl;
2017-05-09 07:23:04 -07:00
Vinnie Falco
a7ef4f53dc
New ostream() returns dynamic buffer output stream (API Change):
...
This eliminates beast::write output for dynamic buffers and replaces
it with the function ostream() that wraps a caller provided dynamic
buffer and returns the result as a std::ostream derived object.
Callers may now produce formatted output into any object meeting the
requirements of DynamicBuffer using operator<< and the standard stream
modifiers such as std::endl.
This new technique is more efficient, as implementations of operator<<
can now write directly into the output using std::ostream::write and
std::ostream::put.
Example of use:
beast::streambuf sb;
beast::ostream(sb) << "Hello, world!" << std::endl;
2017-05-08 15:46:03 -07:00