def build_url(url = nil, extra_params = nil)
      uri = build_exclusive_url(url)

      query_values = params.dup.merge_query(uri.query, options.params_encoder)
      query_values.update(extra_params) if extra_params
      uri.query =
        if query_values.empty?
          nil
        else
          query_values.to_query(options.params_encoder)
        end

      uri
    end
def build_url(url = nil, extra_params = nil)
      uri = build_exclusive_url(url)

      query_values = params.dup.merge_query(uri.query, options.params_encoder)
      query_values.update(extra_params) if extra_params
      uri.query =
        if query_values.empty?
          nil
        else
          query_values.to_query(options.params_encoder)
        end

      uri
    end
Takes a relative url for a request and combines it with the defaults
 set on the connection instance.

 @param url [String]
 @param extra_params [Hash]

 @example
   conn = Faraday::Connection.new { ... }
   conn.url_prefix = "https://sushi.com/api?token=abc"
   conn.scheme      # => https
   conn.path_prefix # => "/api"

   conn.build_url("nigiri?page=2")
   # => https://sushi.com/api/nigiri?token=abc&page=2

   conn.build_url("nigiri", page: 2)
   # => https://sushi.com/api/nigiri?token=abc&page=2