You are here

public function Response::setProtocolVersion in RESTful 7.2

Sets the HTTP protocol version (1.0 or 1.1).

Parameters

string $version The HTTP protocol version:

Overrides ResponseInterface::setProtocolVersion

2 calls to Response::setProtocolVersion()
Response::prepare in src/Http/Response.php
Prepares the Response before it is sent to the client.
Response::__construct in src/Http/Response.php
Constructor.

File

src/Http/Response.php, line 274
Contains \Drupal\restful\Http\Response.

Class

Response

Namespace

Drupal\restful\Http

Code

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