chore: complete update

This commit is contained in:
2025-07-17 16:24:20 +02:00
parent 899227b0a4
commit 64a7051137
1300 changed files with 85570 additions and 2756 deletions

View File

@@ -0,0 +1,29 @@
<?php
declare(strict_types=1);
namespace App\Framework\Http\Responses;
use App\Framework\Http\Headers;
use App\Framework\Http\Range;
use App\Framework\Http\Response;
use App\Framework\Http\Status;
final readonly class StreamResponse implements Response, Streamable
{
public string $body;
public function __construct(
public Status $status = Status::OK,
public Headers $headers = new Headers(),
#public mixed $fileContent,
public string $filePath = '',
public int $fileSize = 0,
public string $mimeType = 'application/octet-stream',
public ?Range $range = null,
public MediaType $mediaType = MediaType::UNKNOWN,
) {
$this->body = '';
}
}