On Mon, 19 Aug 2013 19:24:32 GMT, Craig Dillabaugh wrote:

Just curious, when you say the 'client' would pass the contents of the 'bodyReader' to the caller, what does that mean? (in my thinking client == caller).

I just mean that the RestInterfaceClient would create a stub method similar to this:

void performOperationWithBinaryResult(OutputStream out, int some_parameter, int some_other_parameter)
{
    auto res = requestHTTP(...);
    out.write(res.bodyReader);
}

So the HTTP response body is written verbatim to the output stream that was passed by the user code to the method.