public function Request::getRawHeaders

Get the raw message headers as a string

Return value

string

Overrides MessageInterface::getRawHeaders

1 call to Request::getRawHeaders()
Request::__toString in drupal/core/vendor/guzzle/http/Guzzle/Http/Message/Request.php
Get the HTTP request as a string

File

drupal/core/vendor/guzzle/http/Guzzle/Http/Message/Request.php, line 220

Class

Request
HTTP request class to send requests

Namespace

Guzzle\Http\Message

Code

public function getRawHeaders() {
  $protocolVersion = $this->protocolVersion ?: '1.1';
  return trim($this->method . ' ' . $this
    ->getResource()) . ' ' . strtoupper(str_replace('https', 'http', $this->url
    ->getScheme())) . '/' . $protocolVersion . "\r\n" . implode("\r\n", $this
    ->getHeaderLines());
}