You are here

public function Response::setProtocolVersion in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-foundation/Response.php \Symfony\Component\HttpFoundation\Response::setProtocolVersion()

Sets the HTTP protocol version (1.0 or 1.1).

Parameters

string $version The HTTP protocol version:

Return value

Response

4 calls to Response::setProtocolVersion()
BinaryFileResponse::prepare in vendor/symfony/http-foundation/BinaryFileResponse.php
Prepares the Response before it is sent to the client.
Response::prepare in vendor/symfony/http-foundation/Response.php
Prepares the Response before it is sent to the client.
Response::__construct in vendor/symfony/http-foundation/Response.php
Constructor.
SecuredRedirectResponse::fromResponse in core/lib/Drupal/Component/HttpFoundation/SecuredRedirectResponse.php
Copies over the values from the given response.

File

vendor/symfony/http-foundation/Response.php, line 420

Class

Response
Response represents an HTTP response.

Namespace

Symfony\Component\HttpFoundation

Code

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