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

Breadcrumb

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

function Response::__construct

Same name in this branch
  1. 11.1.x vendor/composer/composer/src/Composer/Util/Http/Response.php \Composer\Util\Http\Response::__construct()
  2. 11.1.x vendor/guzzlehttp/psr7/src/Response.php \GuzzleHttp\Psr7\Response::__construct()
  3. 11.1.x vendor/symfony/http-foundation/Response.php \Symfony\Component\HttpFoundation\Response::__construct()

The headers array is a set of key/value pairs. If a header is present multiple times then the value is an array of all the values.

Parameters

string $content The content of the response:

int $status The response status code (302 "Found" by default):

array $headers An array of headers:

File

vendor/symfony/browser-kit/Response.php, line 31

Class

Response
@author Fabien Potencier <fabien@symfony.com>

Namespace

Symfony\Component\BrowserKit

Code

public function __construct(string $content = '', int $status = 200, array $headers = []) {
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal