forked from boostorg/beast
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:
1 parent
101023553e
commit
895c9fa7ed
29 files changed
+582
-583
No files matched your search
@@ -44,7 +44,7 @@ parser(parser<isRequest, OtherBody, Allocator>&& other,
|
||||
, m_(other.release(), std::forward<Args>(args)...)
|
||||
, wr_(m_)
|
||||
{
|
||||
if(other.wr_inited_)
|
||||
if(other.rd_inited_)
|
||||
BOOST_THROW_EXCEPTION(std::invalid_argument{
|
||||
"moved-from parser has a body"});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user