forked from boostorg/beast
Refactor type_traits (API Change):
fix #373 * concepts.hpp is renamed to type_traits.hpp * Body reader and writer concepts are renamed
This commit is contained in:
1 parent
8578419433
commit
c29451a8dd
32 files changed
+435
-462
No files matched your search
@@ -8,7 +8,7 @@
|
||||
#ifndef BEAST_HTTP_BUFFER_BODY_HPP
|
||||
#define BEAST_HTTP_BUFFER_BODY_HPP
|
||||
|
||||
#include <beast/http/concepts.hpp>
|
||||
#include <beast/http/type_traits.hpp>
|
||||
#include <beast/http/error.hpp>
|
||||
#include <beast/http/message.hpp>
|
||||
#include <boost/optional.hpp>
|
||||
@@ -68,10 +68,10 @@ struct buffer_body
|
||||
std::pair<boost::optional<ConstBufferSequence>, bool>;
|
||||
|
||||
#if BEAST_DOXYGEN
|
||||
/// The algorithm used when serializing this body
|
||||
using writer = implementation_defined;
|
||||
/// The algorithm to obtain buffers representing the body
|
||||
using reader = implementation_defined;
|
||||
#else
|
||||
class writer
|
||||
class reader
|
||||
{
|
||||
bool toggle_ = false;
|
||||
value_type const& body_;
|
||||
@@ -84,7 +84,7 @@ struct buffer_body
|
||||
|
||||
template<bool isRequest, class Fields>
|
||||
explicit
|
||||
writer(message<isRequest, buffer_body,
|
||||
reader(message<isRequest, buffer_body,
|
||||
Fields> const& msg)
|
||||
: body_(msg.body)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user