def get(params: {}, filter: [])
        uri = URI.parse(query_url)

        temp_params = {}

        if uri.query
          # Returns [ ["key", "value"], ["key", "value"] ]
          key_value_array = URI.decode_www_form(endpoint.query)
          key_value_array.map! { |key_value_pair| [ key_value_pair[0].to_sym, key_value_pair[1] ] }
          temp_params = key_value_array.to_h
        end

        temp_params = temp_params.merge(params)

        uri.query = temp_params

        GromNative.fetch( uri: uri.to_s, headers: headers, filter: filter, decorators: @decorators )
      end
def get(params: {}, filter: [])
        uri = URI.parse(query_url)

        temp_params = {}

        if uri.query
          # Returns [ ["key", "value"], ["key", "value"] ]
          key_value_array = URI.decode_www_form(endpoint.query)
          key_value_array.map! { |key_value_pair| [ key_value_pair[0].to_sym, key_value_pair[1] ] }
          temp_params = key_value_array.to_h
        end

        temp_params = temp_params.merge(params)

        uri.query = temp_params

        GromNative.fetch( uri: uri.to_s, headers: headers, filter: filter, decorators: @decorators )
      end
Creates a new instance of Parliament::Request::UrlRequest.

 @see Parliament::Request::BaseRequest#initialize.

 @param [String] base_url the base url of our api. (expected: http://example.com - without the trailing slash).
 @param [Hash] headers the headers being sent in the request.
 @param [Parliament::Builder] builder the builder to use in order to build a response.
 @param [Module] decorators the decorator module to use in order to provide possible alias methods for any objects created by the builder.
 @example Passing headers

 request = Parliament::Request::UrlRequest.new(base_url: 'http://example.com', headers: { 'Access-Token' => '12345678' })
 This will create a request with the Access-Token set to 12345678.
 Makes an HTTP GET request and process results into a response.

 @example HTTP GET request
   request = Parliament::Request::BaseRequest.new(base_url: 'http://example.com/people/123'

   # url: http://example.com/people/123

   response = request.get #=> #<Parliament::Response::BaseResponse ...>

 @example HTTP GET request with URI encoded form values
   request = Parliament::Request.new(base_url: 'http://example.com/people/current')

   # url: http://example.com/people/current?limit=10&page=4&lang=en-gb

   response = request.get({ limit: 10, page: 4, lang: 'en-gb' }) #=> #<Parliament::Response::BaseResponse ...>

 @raise [Parliament::ServerError] when the server responds with a 5xx status code.
 @raise [Parliament::ClientError] when the server responds with a 4xx status code.
 @raise [Parliament::NoContentResponseError] when the response body is empty.

 @param [Hash] params (optional) additional URI encoded form values to be added to the URI.

 @return [Parliament::Response::BaseResponse] a Parliament::Response::BaseResponse object containing all of the data returned from the URL.