public function FullHttpMessageFormatter::formatStats in Apigee Edge 8
Formats stats object.
Parameters
\GuzzleHttp\TransferStats $stats: Transfer statistics.
Return value
string Formatted output.
Overrides DebugMessageFormatterPluginBase::formatStats
File
- modules/apigee_edge_debug/ src/ Plugin/ DebugMessageFormatter/ FullHttpMessageFormatter.php, line 56 
Class
- FullHttpMessageFormatter
- Full HTML debug message formatter plugin.
Namespace
Drupal\apigee_edge_debug\Plugin\DebugMessageFormatterCode
public function formatStats(TransferStats $stats) : string {
  $output = '';
  foreach ($this
    ->getTimeStatsInSeconds($stats) as $key => $value) {
    $output .= "{$key}: {$value}\r\n";
  }
  return $output;
}