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

Breadcrumb

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

function StreamedResponse::__construct

Parameters

int $status The HTTP status code (200 "OK" by default):

Overrides Response::__construct

2 calls to StreamedResponse::__construct()
StreamedJsonResponse::__construct in vendor/symfony/http-foundation/StreamedJsonResponse.php
StreamedJsonResponse::__construct in vendor/symfony/http-foundation/StreamedJsonResponse.php
1 method overrides StreamedResponse::__construct()
StreamedJsonResponse::__construct in vendor/symfony/http-foundation/StreamedJsonResponse.php

File

vendor/symfony/http-foundation/StreamedResponse.php, line 37

Class

StreamedResponse
StreamedResponse represents a streamed HTTP response.

Namespace

Symfony\Component\HttpFoundation

Code

public function __construct(?callable $callback = null, int $status = 200, array $headers = []) {
    parent::__construct(null, $status, $headers);
    if (null !== $callback) {
        $this->setCallback($callback);
    }
    $this->streamed = false;
    $this->headersSent = false;
}

API Navigation

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