예제 #1
0
 /**
  * {@inheritdoc}
  */
 public function getHeaders()
 {
     return $this->_delegate->getHeaders();
 }
예제 #2
0
 /**
  * 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;
 }