First part of my attempt to separate transport and business logic, because it is terribly mixed in the C++ codebase.
This diff implements the ResponseBuffer utility struct which handles retrieving data chunks of arbitrary size. One of its functionalities is to reflect this C++ function.
Depends on D6241