private function MessageFormatter::headers in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/guzzlehttp/guzzle/src/MessageFormatter.php \GuzzleHttp\MessageFormatter::headers()
1 call to MessageFormatter::headers()
- MessageFormatter::format in vendor/
guzzlehttp/ guzzle/ src/ MessageFormatter.php - Returns a formatted message string.
File
- vendor/
guzzlehttp/ guzzle/ src/ MessageFormatter.php, line 173
Class
- MessageFormatter
- Formats log messages using variable substitutions for requests, responses, and other transactional data.
Namespace
GuzzleHttpCode
private function headers(MessageInterface $message) {
$result = '';
foreach ($message
->getHeaders() as $name => $values) {
$result .= $name . ': ' . implode(', ', $values) . "\r\n";
}
return trim($result);
}