protected $streamed;
private bool
$headersSent;
/**
* @param int $status The HTTP status code (200 "OK" by default)
*/
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;
} /**
* Sets the PHP callback associated with this Response.
*
* @return $this
*/
public function setCallback(callable
$callback):
static {