code: private function _writeHeadersAndBody($logInfo, $headers, $body)
      {
          foreach ($headers as $name => $value) {
              $logInfo .= $name . ': ' . $value . "\n";
          }
  
          return $logInfo .= "Body: " . $body . "\n";
      }
docs: /*
  Executes header and boy formatting