$headers Lower-case header name => value. */ public function __construct(private string $route = '', private array $headers = []) { } public function get_route(): string { return $this->route; } public function get_header(string $key): ?string { return $this->headers[strtolower($key)] ?? null; } } }