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
Namespace
Drupal\restful\HttpCode
public function setProtocolVersion($version) {
$this->version = $version;
}