class Faraday::Connection

def url_prefix=(url, encoder = nil)

Returns the parsed URI from teh given input..

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

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

Examples

url - A String or URI.

requests made by this connection.
components in this connection. These components serve as defaults for
Public: Parses the giving url with URI and stores the individual
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
  uri
end