This commit is contained in:
2021-08-04 10:16:03 +08:00
parent d688ca175b
commit f77ce9878b
+13 -13
View File
@@ -11,23 +11,23 @@ use HttpServer\Http\Response as HttpResponse;
/**
* Class Response
* @package Server
* @mixin \HttpServer\Http\Response
* @mixin HttpResponse
*/
class Response
{
const JSON = 'json';
const XML = 'xml';
const HTML = 'html';
const JSON = 'json';
const XML = 'xml';
const HTML = 'html';
/**
* @param $name
* @param $args
* @return mixed
*/
public function __call($name, $args)
{
return Context::getContext(HttpResponse::class)->{$name}(...$args);
}
/**
* @param $name
* @param $args
* @return mixed
*/
public function __call($name, $args)
{
return Context::getContext(HttpResponse::class)->{$name}(...$args);
}
}