public function getResponseHeader($header) { if (!isset($this->responseHeaders[$header])) { throw new \Exception("Header '{$header}' not found."); } return $this->responseHeaders[$header]; }