Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Response.php

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\HttpFoundation

Code

public function setProtocolVersion(string $version) : static {
    $this->version = $version;
    return $this;
}
RSS feed
Powered by Drupal