function Response::setProtocolVersion
Sets the HTTP protocol version (1.0 or 1.1).
@final
Return value
$this
3 calls to Response::setProtocolVersion()
- 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 - 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 440
Class
- Response
- Response represents an HTTP response.
Namespace
Symfony\Component\HttpFoundationCode
public function setProtocolVersion(string $version) : static {
$this->version = $version;
return $this;
}