module Faraday

def new(url = nil, options = {}, &block)

Other tags:
    Example: With everything in an options hash -
    Example: With an URL argument and an options hash -
    Example: With an URL argument -

Returns:
  • (Faraday::Connection) -

Options Hash: (**options)
  • :proxy (Hash) -- Hash of Proxy options.
  • :ssl (Hash) -- Hash of SSL options.
  • :request (Hash) -- Hash of request options.
  • :headers (Hash) -- Hash of unencoded HTTP headers.
  • :params (Hash) -- Hash of unencoded URI query params.
  • :url (String) -- Base URL

Parameters:
  • options (Hash) --
  • url (String, Hash) -- The optional String base URL to use as a prefix
def new(url = nil, options = {}, &block)
  options = Utils.deep_merge(default_connection_options, options)
  Faraday::Connection.new(url, options, &block)
end