class HTTP::Retriable::Client
Retriable
version of HTTP::Client
.
Public Class Methods
Source
# File lib/http/retriable/client.rb, line 13 def initialize(performer, options) @performer = performer super(options) end
@param [Performer] performer @param [HTTP::Options, Hash] options
Calls superclass method
HTTP::Client::new
Public Instance Methods
Source
# File lib/http/retriable/client.rb, line 23 def perform(req, options) @performer.perform(self, req) { super(req, options) } end
Overriden version of ‘HTTP::Client#make_request`.
Monitors request/response phase with performer.
@see www.rubydoc.info/gems/http/HTTP/Client:perform
Calls superclass method
HTTP::Client#perform
Private Instance Methods
Source
# File lib/http/retriable/client.rb, line 32 def branch(options) Retriable::Client.new(@performer, options) end
Overriden version of ‘HTTP::Chainable#branch`.
@return [HTTP::Retriable::Client]