Return std::size_t from Body::writer::put (API Change)

`put` returns the number of bytes actually transferred
from the input buffers.

Actions Required:

* Return the number of bytes actually transferred from the
  input buffers in user defined `Body::writer::put` functions.
This commit is contained in:
Vinnie Falco
2017-07-20 08:15:29 -07:00
parent f3afc834b1
commit c149321013
19 changed files with 179 additions and 55 deletions
+3 -3
View File
@@ -199,11 +199,11 @@ public:
ec.assign(0, ec.category());
}
void
on_data(string_view,
error_code& ec)
std::size_t
on_data(string_view s, error_code& ec)
{
ec.assign(0, ec.category());
return s.size();
}
void