forked from boostorg/beast
HTTP reads and writes return bytes transferred (API Change):
* HTTP read and write operations now return the number of bytes transferred to or from the stream. Actions Required: * Modify HTTP read and/or write completion handlers to receive the extra std::size_t bytes_transferred parameter.
This commit is contained in:
1 parent
cc8246e27e
commit
49d9d47a0b
22 files changed
+460
-230
No files matched your search
@@ -67,7 +67,9 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
void operator()(error_code ec = {});
|
||||
void operator()(
|
||||
error_code ec = {},
|
||||
std::size_t bytes_transferred = 0);
|
||||
|
||||
friend
|
||||
void* asio_handler_allocate(
|
||||
@@ -110,7 +112,9 @@ template<class Handler>
|
||||
void
|
||||
stream<NextLayer>::
|
||||
response_op<Handler>::
|
||||
operator()(error_code ec)
|
||||
operator()(
|
||||
error_code ec,
|
||||
std::size_t)
|
||||
{
|
||||
auto& d = *d_;
|
||||
BOOST_ASIO_CORO_REENTER(*this)
|
||||
@@ -170,7 +174,9 @@ public:
|
||||
template<class Buffers>
|
||||
void run(Buffers const& buffers);
|
||||
|
||||
void operator()(error_code ec = {});
|
||||
void operator()(
|
||||
error_code ec = {},
|
||||
std::size_t bytes_used = 0);
|
||||
|
||||
friend
|
||||
void* asio_handler_allocate(
|
||||
@@ -242,7 +248,7 @@ template<class Decorator, class Handler>
|
||||
void
|
||||
stream<NextLayer>::
|
||||
accept_op<Decorator, Handler>::
|
||||
operator()(error_code ec)
|
||||
operator()(error_code ec, std::size_t)
|
||||
{
|
||||
auto& d = *d_;
|
||||
BOOST_ASIO_CORO_REENTER(*this)
|
||||
|
||||
@@ -76,7 +76,9 @@ public:
|
||||
}
|
||||
|
||||
void
|
||||
operator()(error_code ec = {});
|
||||
operator()(
|
||||
error_code ec = {},
|
||||
std::size_t bytes_used = 0);
|
||||
|
||||
friend
|
||||
void* asio_handler_allocate(
|
||||
@@ -118,7 +120,7 @@ template<class NextLayer>
|
||||
template<class Handler>
|
||||
void
|
||||
stream<NextLayer>::handshake_op<Handler>::
|
||||
operator()(error_code ec)
|
||||
operator()(error_code ec, std::size_t)
|
||||
{
|
||||
auto& d = *d_;
|
||||
BOOST_ASIO_CORO_REENTER(*this)
|
||||
|
||||
Reference in new issue
Block a user