Method: Brine::Requesting#client

Defined in:
lib/brine/requesting.rb

#clientFaraday::Connection, #run_request

Return the currently active client which will be used to issue HTTP calls.

This will be initialized as neded on first access to a default client constructed by the ClientBuilding module.

Returns:

  • (Faraday::Connection, #run_request)

    Return the active HTTP client.



65
66
67
# File 'lib/brine/requesting.rb', line 65

def client
  @client ||= client_for_host(brine_root_url)
end