def build_exclusive_url(url = nil, params = nil, params_encoder = nil)
      url = nil if url.respond_to?(:empty?) && url.empty?
      base = url_prefix
      if url && base.path && base.path !~ %r{/$}
        base = base.dup
        base.path = base.path + '/' # ensure trailing slash
      end
      uri = url ? base + url : base
      if params
        uri.query = params.to_query(params_encoder || options.params_encoder)
      end
      # rubocop:disable Style/SafeNavigation
      uri.query = nil if uri.query && uri.query.empty?
      # rubocop:enable Style/SafeNavigation
      uri
    end
def build_exclusive_url(url = nil, params = nil, params_encoder = nil)
      url = nil if url.respond_to?(:empty?) && url.empty?
      base = url_prefix
      if url && base.path && base.path !~ %r{/$}
        base = base.dup
        base.path = base.path + '/' # ensure trailing slash
      end
      uri = url ? base + url : base
      if params
        uri.query = params.to_query(params_encoder || options.params_encoder)
      end
      # rubocop:disable Style/SafeNavigation
      uri.query = nil if uri.query && uri.query.empty?
      # rubocop:enable Style/SafeNavigation
      uri
    end
Build an absolute URL based on url_prefix.

 @param url [String, URI]
 @param params [Faraday::Utils::ParamsHash] A Faraday::Utils::ParamsHash to
               replace the query values
          of the resulting url (default: nil).

 @return [URI]