for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Gacela\Router\Entities;
use Stringable;
class Response implements Stringable
{
/**
* @param list<string> $headers
*/
public function __construct(
private string $content,
private array $headers = [],
) {
}
public function __toString(): string
foreach ($this->headers as $header) {
header($header);
return $this->content;