public function getHeader($key = null, $toLower = true)
    {
        if ($key === null) {
            return $this->_headers;
        }
        if ($toLower === true) {
            $key = strtolower($key);
        }
        return isset($this->_headers[$key]) ? $this->_headers[$key] : null;
    }