private function getHeader($index, $default = null) { if (!isset($this->headers[$index])) { return $default; } return $this->headers[$index]; }