class Faraday::Connection

def url_prefix=(url, encoder = nil)

Parameters:
  • encoder (Object) --
  • url (String, URI) --
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|
    set_basic_auth(user, password)
    uri.user = uri.password = nil
  end
  @proxy = proxy_from_env(url) unless @manual_proxy
end