def url_prefix=(url, encoder = nil)
      uri = @url_prefix = Utils.URI(url)
      self.path_prefix = uri.path

      params.merge_query(uri.query, encoder)
      uri.query = nil

      with_uri_credentials(uri) do |user, password|
        basic_auth user, password
        uri.user = uri.password = nil
      end
    end
def url_prefix=(url, encoder = nil)
      uri = @url_prefix = Utils.URI(url)
      self.path_prefix = uri.path

      params.merge_query(uri.query, encoder)
      uri.query = nil

      with_uri_credentials(uri) do |user, password|
        basic_auth user, password
        uri.user = uri.password = nil
      end
    end
Parses the given URL with URI and stores the individual
 components in this connection. These components serve as defaults for
 requests made by this connection.

 @param url [String, URI]
 @param encoder [Object]

 @example

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

   conn.get("nigiri?page=2") # accesses https://sushi.com/api/nigiri