This commit is contained in:
2023-10-17 14:50:46 +08:00
parent 30da8e7b37
commit bfbdb1e7ce
12 changed files with 251 additions and 57 deletions
+12
View File
@@ -390,6 +390,18 @@ class Response implements ResponseInterface
return $this->__call__(__FUNCTION__);
}
/**
* @param string $content
* @param int $statusCode
* @param ContentType $contentType
* @return ResponseInterface
*/
public function raw(string $content, int $statusCode = 200, ContentType $contentType = ContentType::JSON): ResponseInterface
{
return $this->__call__(__FUNCTION__, $content, $statusCode, $contentType);
}
/**
* Return an instance with the specified status code and, optionally, reason phrase.
*