chore: lots of changes
This commit is contained in:
20
src/Framework/Http/HttpResponse.php
Normal file
20
src/Framework/Http/HttpResponse.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Framework\Http;
|
||||
|
||||
final readonly class HttpResponse implements Response
|
||||
{
|
||||
public function __construct(
|
||||
public Status $status = Status::OK,
|
||||
public Headers $headers = new Headers(),
|
||||
public string $body = ''
|
||||
|
||||
/*public private(set) string $body = '' {
|
||||
get => $this->body;
|
||||
set => $value;
|
||||
}*/
|
||||
) {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user