public function Response::setProtocolVersion

Sets the HTTP protocol version (1.0 or 1.1).

@api

Parameters

string $version The HTTP protocol version:

Return value

Response

3 calls to Response::setProtocolVersion()
BinaryFileResponse::prepare in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/BinaryFileResponse.php
Prepares the Response before it is sent to the client.
Response::prepare in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Response.php
Prepares the Response before it is sent to the client.
Response::__construct in drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Response.php
Constructor.

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Response.php, line 379

Class

Response
Response represents an HTTP response.

Namespace

Symfony\Component\HttpFoundation

Code

public function setProtocolVersion($version) {
  $this->version = $version;
  return $this;
}