Method: HTTP::Client#perform

Defined in:
lib/http/client.rb

#perform(req, options) ⇒ HTTP::Response

Perform a single (no follow) HTTP request

Examples:

client.perform(request, options)

Parameters:

Returns:



88
89
90
91
92
93
94
# File 'lib/http/client.rb', line 88

def perform(req, options)
  if options.retriable
    perform_with_retry(req, options)
  else
    perform_once(req, options)
  end
end