public function Response::getProtocolVersion

Same name in this branch
  1. 8.x drupal/core/vendor/guzzle/http/Guzzle/Http/Message/Response.php \Guzzle\Http\Message\Response::getProtocolVersion()
  2. 8.x drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Response.php \Symfony\Component\HttpFoundation\Response::getProtocolVersion()

Get the HTTP protocol version

Return value

string

File

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

Class

Response
Guzzle HTTP response object

Namespace

Guzzle\Http\Message

Code

public function getProtocolVersion() {
  return $this->protocolVersion ?: '1.1';
}