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
+4 -4
View File
@@ -24,13 +24,13 @@ public:
{
struct value_type{};
struct reader
struct writer
{
using const_buffers_type =
boost::asio::const_buffer;
template<bool isRequest, class Fields>
reader(message<isRequest, const_body, Fields> const&);
writer(message<isRequest, const_body, Fields> const&);
void
init(error_code& ec);
@@ -44,13 +44,13 @@ public:
{
struct value_type{};
struct reader
struct writer
{
using const_buffers_type =
boost::asio::const_buffer;
template<bool isRequest, class Fields>
reader(message<isRequest, mutable_body, Fields>&);
writer(message<isRequest, mutable_body, Fields>&);
void
init(error_code& ec);