BodyReader and BodyWriter names are swapped (API Change):

Body::reader and Body::writer meanings are reversed, for
consistency with the names of the stream operations:

* Body::reader is used for read, read_some, async_read, async_read_some
* Body::writer is used for write, write_some, async_write, async_write_some

Actions Required:

* Swap the reader and writer names for user defined Body types
* Swap use of is_body_reader and is_body_writer
This commit is contained in:
Vinnie Falco
2017-10-30 18:13:40 -07:00
parent 101023553e
commit 895c9fa7ed
29 changed files with 582 additions and 583 deletions
+8 -8
View File
@@ -38,7 +38,7 @@ public:
{
using value_type = std::string;
class reader
class writer
{
value_type const& body_;
@@ -48,7 +48,7 @@ public:
template<bool isRequest, class Allocator>
explicit
reader(message<isRequest,
writer(message<isRequest,
unsized_body, Allocator> const& msg)
: body_(msg.body())
{
@@ -82,7 +82,7 @@ public:
bool mutable read = false;
};
class reader
class writer
{
int step_ = 0;
value_type const& body_;
@@ -93,7 +93,7 @@ public:
template<bool isRequest, class Fields>
explicit
reader(message<isRequest,
writer(message<isRequest,
test_body, Fields> const& msg)
: body_(msg.body())
{
@@ -195,11 +195,11 @@ public:
struct fail_body
{
class reader;
class writer;
class value_type
{
friend class reader;
friend class writer;
std::string s_;
test::fail_counter& fc_;
@@ -219,7 +219,7 @@ public:
}
};
class reader
class writer
{
std::size_t n_ = 0;
value_type const& body_;
@@ -230,7 +230,7 @@ public:
template<bool isRequest, class Allocator>
explicit
reader(message<isRequest,
writer(message<isRequest,
fail_body, Allocator> const& msg)
: body_(msg.body())
{