eee
This commit is contained in:
@@ -21,6 +21,12 @@ class Response implements ResponseInterface
|
||||
public ContentType $contentType = ContentType::JSON;
|
||||
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
public array $headers = [];
|
||||
|
||||
|
||||
/**
|
||||
* @var string|ResponseEmitterInterface
|
||||
*/
|
||||
@@ -33,6 +39,7 @@ class Response implements ResponseInterface
|
||||
public function __construct()
|
||||
{
|
||||
$this->contentType = \config('response.content-type', ContentType::JSON);
|
||||
$this->headers = \config('response.headers', []);
|
||||
$this->emmit = \config('response.emmit', SwooleHttpResponseEmitter::class);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user