This commit is contained in:
shimon
2024-10-29 17:51:07 +02:00
parent 1c18e90b8a
commit fb3e772774
-42
View File
@@ -694,48 +694,6 @@ class Response extends SwooleResponse
$this->send($body);
}
/**
* Output response
*
* Generate HTTP response output including the response header (+cookies) and body and prints them.
*
* @param string $body
* @param bool $end
*
* @return void
*/
public function bla(string $body = '', bool $end = false): void
{
if ($this->sent) {
return;
}
if ($end) {
$this->sent = true;
}
$this->addHeader('X-Debug-Speed', (string) (microtime(true) - $this->startTime));
$this
->appendCookies()
->appendHeaders();
$this->payload = [
'payload' => $body
];
if (!$this->disablePayload) {
$this->write($body);
if ($end) {
$this->disablePayload();
$this->end();
}
} else {
$this->end();
}
}
/**
* YAML
*