Proper way to log XdataClients request response

Hi,
I try to capture raw data from XdataClient
I can capture it on
Xdataclient.HttpClient.OnResponseReceived event
But if I read content asbytes or asstream, i get complain that json is invalid
expecting { but get EOF (or similar error).
So I made own THttpResponse class which get's content etc from constructor,but I was wondering is this only way?
Does Spark or Xdata have THttpResponse descant class where one cat set response.

Yes, since the content stream is read once and is unidirectional. At least it's the safer way.