def build_uri(verb, path, params = {})
      log.info  "Building URI..."

      # Add any query string parameters
      if querystring = to_query_string(params)
        log.debug "Detected verb deserves a querystring"
        log.debug "Building querystring using #{params.inspect}"
        log.debug "Compiled querystring is #{querystring.inspect}"
        path = [path, querystring].compact.join('?')
      end

      # Parse the URI
      uri = URI.parse(path)

      # Don't merge absolute URLs
      unless uri.absolute?
        log.debug "Detected URI is relative"
        log.debug "Appending #{path} to #{endpoint}"
        uri = URI.parse(File.join(endpoint, path))
      end

      # Return the URI object
      uri
    end
def build_uri(verb, path, params = {})
      log.info  "Building URI..."

      # Add any query string parameters
      if querystring = to_query_string(params)
        log.debug "Detected verb deserves a querystring"
        log.debug "Building querystring using #{params.inspect}"
        log.debug "Compiled querystring is #{querystring.inspect}"
        path = [path, querystring].compact.join('?')
      end

      # Parse the URI
      uri = URI.parse(path)

      # Don't merge absolute URLs
      unless uri.absolute?
        log.debug "Detected URI is relative"
        log.debug "Appending #{path} to #{endpoint}"
        uri = URI.parse(File.join(endpoint, path))
      end

      # Return the URI object
      uri
    end
Construct a URL from the given verb and path. If the request is a GET or
 DELETE request, the params are assumed to be query params are are
 converted as such using {Connection#to_query_string}.

 If the path is relative, it is merged with the {Defaults.endpoint}
 attribute. If the path is absolute, it is converted to a URI object and
 returned.

 @param [Symbol] verb
   the lowercase HTTP verb (e.g. :+get+)
 @param [String] path
   the absolute or relative HTTP path (url) to get
 @param [Hash] params
   the list of params to build the URI with (for GET and DELETE requests)

 @return [URI]