public function Response::getRawHeaders

Get the the raw message headers as a string

Return value

string

Overrides MessageInterface::getRawHeaders

1 call to Response::getRawHeaders()
Response::getMessage in drupal/core/vendor/guzzle/http/Guzzle/Http/Message/Response.php
Get the entire response as a string

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Message/Response.php, line 335

Class

Response
Guzzle HTTP response object

Namespace

Guzzle\Http\Message

Code

public function getRawHeaders() {
  $headers = 'HTTP/1.1 ' . $this->statusCode . ' ' . $this->reasonPhrase . "\r\n";
  $lines = $this
    ->getHeaderLines();
  if (!empty($lines)) {
    $headers .= implode("\r\n", $lines) . "\r\n";
  }
  return $headers . "\r\n";
}