net::prepend is replaced with net::append

This commit is contained in:
Mohammad Nejati authored and Mohammad Nejati committed 2024-07-07 14:58:49 +03:30
1 parent dadd1bc785
commit aabd5b51d3
7 files changed
+23 -23

No files matched your search

+3 -3
View File
@@ -19,10 +19,10 @@
#include <boost/beast/core/stream_traits.hpp>
#include <boost/beast/core/detail/buffer.hpp>
#include <boost/beast/core/detail/read.hpp>
#include <boost/asio/error.hpp>
#include <boost/asio/append.hpp>
#include <boost/asio/compose.hpp>
#include <boost/asio/coroutine.hpp>
#include <boost/asio/prepend.hpp>
#include <boost/asio/error.hpp>
namespace boost {
namespace beast {
@@ -259,7 +259,7 @@ public:
asio::get_associated_immediate_executor(
self, s_.get_executor());
net::dispatch(ex, net::prepend(std::move(self), ec));
net::dispatch(ex, net::append(std::move(self), ec));
}
}
self.complete(ec, bytes_transferred_);
+3 -3
View File
@@ -16,10 +16,10 @@
#include <boost/beast/core/make_printable.hpp>
#include <boost/beast/core/stream_traits.hpp>
#include <boost/beast/core/detail/is_invocable.hpp>
#include <boost/asio/append.hpp>
#include <boost/asio/coroutine.hpp>
#include <boost/asio/dispatch.hpp>
#include <boost/asio/write.hpp>
#include <boost/asio/prepend.hpp>
#include <boost/optional.hpp>
#include <boost/throw_exception.hpp>
#include <ostream>
@@ -103,7 +103,7 @@ public:
"http::async_write_some"));
const auto ex = asio::get_associated_immediate_executor(*this, s_.get_executor());
return net::dispatch(ex, net::prepend(std::move(*this), ec, 0));
return net::dispatch(ex, net::append(std::move(*this), ec, 0));
}
if(f.invoked)
{
@@ -119,7 +119,7 @@ public:
"http::async_write_some"));
const auto ex = this->get_immediate_executor();
return net::dispatch(ex, net::prepend(std::move(*this), ec, 0));
return net::dispatch(ex, net::append(std::move(*this), ec, 0));
}
void