Constructor.
@api
mixed $callback A valid PHP callback:
integer $status The response status code:
array $headers An array of response headers:
Overrides Response::__construct
public function __construct($callback = null, $status = 200, $headers = array()) {
parent::__construct(null, $status, $headers);
if (null !== $callback) {
$this
->setCallback($callback);
}
$this->streamed = false;
}