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 -1
View File
@@ -125,9 +125,11 @@ struct BodyWriter
@param buffers The constant buffer sequence to store.
@param ec Set to the error, if any occurred.
@return The number of bytes transferred from the input buffers.
*/
template<class ConstBufferSequence>
void
std::size_t
put(ConstBufferSequence const& buffers, error_code& ec)
{
// The specification requires this to indicate "no error"