public function setQuery($query, $ensure_encoding = true)
    {
        if (is_string($query) && $ensure_encoding) {
            $query_args = array();
            parse_str($query, $query_args);
            $query = $this->buildQueryString($query_args);
        }
        $this->config['query'] = $query;
        return $this;
    }
public function setQuery($query, $ensure_encoding = true)
    {
        if (is_string($query) && $ensure_encoding) {
            $query_args = array();
            parse_str($query, $query_args);
            $query = $this->buildQueryString($query_args);
        }
        $this->config['query'] = $query;
        return $this;
    }
public function setQuery ( $ query , $ ensure_encoding = true ) { if ( is_string ( $ query ) && $ ensure_encoding ) { $ query_args = array ( ) ; parse_str ( $ query , $ query_args ) ; $ query = $ this -> buildQueryString ( $ query_args ) ; } $ this -> config [ 'query' ] = $ query ; return $ this ; }
Set GET args

If setting to a string, you MUST encode using RFC3986
{@see http_build_query()}. When passing in a string,
this method will re-encode using RFC3986 unless you
explicitly pass in false as the second argument.

@param array|string $query
@param bool $ensure_encoding
@return $this
Set GET args