public function AbstractMessage::getHeaderLines

Get an array of message header lines

Return value

array

Overrides MessageInterface::getHeaderLines

2 calls to AbstractMessage::getHeaderLines()
Request::getRawHeaders in drupal/core/vendor/guzzle/http/Guzzle/Http/Message/Request.php
Get the raw message headers as a string
Response::getRawHeaders in drupal/core/vendor/guzzle/http/Guzzle/Http/Message/Response.php
Get the the raw message headers as a string

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Message/AbstractMessage.php, line 105

Class

AbstractMessage
Abstract HTTP request/response message

Namespace

Guzzle\Http\Message

Code

public function getHeaderLines() {
  $headers = array();
  foreach ($this->headers as $value) {
    $glue = $value
      ->getGlue();
    foreach ($value
      ->raw() as $key => $v) {
      $headers[] = rtrim($key . ': ' . implode($glue, $v));
    }
  }
  return $headers;
}