public function __construct(array
$headers =
[]) { parent::
__construct($headers);
if (!
isset($this->headers
['cache-control'
])) { $this->
set('Cache-Control', ''
);
} /* RFC2616 - 14.18 says all Responses need to have a Date */
if (!
isset($this->headers
['date'
])) { $this->
initDate();
} } /**
* Returns the headers, with original capitalizations.
*/
public function allPreserveCase(): array
{ $headers =
[];
foreach ($this->
all() as $name =>
$value) { $headers[$this->headerNames
[$name] ??
$name] =
$value;
}