public function addQuery($key, $value = null)
    {
        //if it's an array
        if (is_array($key)) {
            //warning this overwrites existing headers
            $this->query = $key;
            return $this;
        }

        //else it should be key value
        $this->query[$key] =  $value;
        return $this;
    }