src/DruidFamiliar/QueryExecutor/DruidNodeDruidQueryExecutor.php
public function createRequest($query)
    {
        $client = new \Guzzle\Http\Client();

        $method = $this->httpMethod;
        $uri = $this->getBaseUrl();
        $headers = $this->getHeaders();
        $options = array();

        if ( $method === 'POST' )
        {
            $postBody = $query;
            $request = $client->createRequest( $method, $uri, $headers, $postBody, $options );
        }
        else if ( $method === 'GET' )
        {
            $request = $client->createRequest( $method, $uri, $headers, null, $options );
            if ( $query ) {
                $queryObject = json_decode($query, true);
                $query = $request->getQuery();
                foreach ($queryObject as $key => $val) {
                    $query->set($key, $val);
                }
            }
        }
        else
        {
            throw new Exception('Unexpected HTTP Method: ' . $method);
        }

        return $request;
    }
public function createRequest($query)
    {
        $client = new \Guzzle\Http\Client();

        $method = $this->httpMethod;
        $uri = $this->getBaseUrl();
        $headers = $this->getHeaders();
        $options = array();

        if ( $method === 'POST' )
        {
            $postBody = $query;
            $request = $client->createRequest( $method, $uri, $headers, $postBody, $options );
        }
        else if ( $method === 'GET' )
        {
            $request = $client->createRequest( $method, $uri, $headers, null, $options );
            if ( $query ) {
                $queryObject = json_decode($query, true);
                $query = $request->getQuery();
                foreach ($queryObject as $key => $val) {
                    $query->set($key, $val);
                }
            }
        }
        else
        {
            throw new Exception('Unexpected HTTP Method: ' . $method);
        }

        return $request;
    }
Create a Guzzle Request object using the given JSON parameters

@param string $query JSON String
@return \Guzzle\Http\Message\RequestInterface
@throws \Exception