/** * {@inheritdoc} */ public function getHeaders() { return $this->_delegate->getHeaders(); }
/** * Gets the headers of a message as a string * * @param puzzle_message_MessageInterface $message * * @return string */ public static function getHeadersAsString(puzzle_message_MessageInterface $message) { $result = ''; foreach ($message->getHeaders() as $name => $values) { $result .= "\r\n{$name}: " . implode(', ', $values); } return $result; }