public function getHeaders($name = null) { if (is_null($name)) { return $this->headers; } else { return $this->getHeader($name); } }