Method: CFoundry::BaseClient#request

Defined in:
lib/cfoundry/baseclient.rb

#request(method, *args) ⇒ Object



77
78
79
80
81
82
83
84
85
86
# File 'lib/cfoundry/baseclient.rb', line 77

def request(method, *args)
  if needs_token_refresh?
    token.auth_header = nil
    refresh_token!
  end

  path, options = normalize_arguments(args)
  request, response = request_raw(method, path, options)
  handle_response(response, options, request)
end