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:
@@ -614,7 +614,7 @@ public:
|
||||
handler() { ++count(); }
|
||||
~handler() { --count(); }
|
||||
handler(handler const&) { ++count(); }
|
||||
void operator()(error_code const&) const {}
|
||||
void operator()(error_code const&, std::size_t) const {}
|
||||
};
|
||||
|
||||
void
|
||||
@@ -830,7 +830,7 @@ public:
|
||||
res.chunked(true);
|
||||
response_serializer<empty_body> sr{res};
|
||||
async_write_header(ts, sr,
|
||||
[&](const error_code&)
|
||||
[&](error_code const&, std::size_t)
|
||||
{
|
||||
});
|
||||
ios.run();
|
||||
|
||||
Reference in New Issue
Block a user