* separate function to format response object from sending request function.
* write results in target output stream.
* add the sendtime of request to result message.