This commit is contained in:
as2252258@163.com
2021-08-04 02:46:50 +08:00
parent 29403b63b1
commit d82cd47c01
+2
View File
@@ -70,6 +70,7 @@ class Response extends HttpService
public function toHtml($content): string
{
$this->format = self::HTML;
var_dump($this->format);
return (string)$content;
}
@@ -173,6 +174,7 @@ class Response extends HttpService
public function configure(SResponse $response = null): static
{
$response->setStatusCode($this->statusCode);
var_dump($this->getResponseFormat());
$response->header('Content-Type', $this->getResponseFormat());
$response->header('Run-Time', $this->getRuntime());
if (!empty($this->headers)) {