...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Called each time additional data is received representing part of a body chunk.
std::size_t on_chunk_body_impl( std::uint64_t remain, string_view body, error_code& ec);
This virtual function is invoked for each piece of the body which is received while parsing of a message. This function is only used when no chunked transfer encoding is present.
Name |
Description |
---|---|
|
The number of bytes remaining in this chunk. This includes the
contents of passed |
|
A string holding the additional body contents. This may contain nulls or unprintable characters. |
|
An output parameter which the function may set to indicate an error. The error will be clear before this function is invoked. |
This function should return the number of bytes actually consumed from
the body
value. Any bytes
that are not consumed on this call will be presented in a subsequent call.