mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
debug
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user