mirror of
https://github.com/boostorg/beast.git
synced 2025-07-30 04:47:29 +02:00
@ -6,6 +6,7 @@ Version 71:
|
|||||||
* Call prepare_payload in HTTP example
|
* Call prepare_payload in HTTP example
|
||||||
* Check trailers in test
|
* Check trailers in test
|
||||||
* Fix buffer overflow handling for string_body and mutable_body
|
* Fix buffer overflow handling for string_body and mutable_body
|
||||||
|
* Concept check in basic_dynamic_body
|
||||||
|
|
||||||
WebSockets:
|
WebSockets:
|
||||||
|
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
|
|
||||||
#include <beast/config.hpp>
|
#include <beast/config.hpp>
|
||||||
#include <beast/core/multi_buffer.hpp>
|
#include <beast/core/multi_buffer.hpp>
|
||||||
|
#include <beast/core/type_traits.hpp>
|
||||||
#include <beast/http/error.hpp>
|
#include <beast/http/error.hpp>
|
||||||
#include <beast/http/message.hpp>
|
#include <beast/http/message.hpp>
|
||||||
#include <boost/optional.hpp>
|
#include <boost/optional.hpp>
|
||||||
@ -26,6 +27,9 @@ namespace http {
|
|||||||
template<class DynamicBuffer>
|
template<class DynamicBuffer>
|
||||||
struct basic_dynamic_body
|
struct basic_dynamic_body
|
||||||
{
|
{
|
||||||
|
static_assert(is_dynamic_buffer<DynamicBuffer>::value,
|
||||||
|
"DynamicBuffer requirements not met");
|
||||||
|
|
||||||
/// The type of the body member when used in a message.
|
/// The type of the body member when used in a message.
|
||||||
using value_type = DynamicBuffer;
|
using value_type = DynamicBuffer;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user