Module: HTTPX::Plugins::Hedging::InstanceMethods

Defined in:
lib/httpx/plugins/hedging.rb,
sig/plugins/hedging.rbs

Instance Method Summary collapse

Instance Method Details

#select_connection(connection, selector) ⇒ Object



36
37
38
39
40
41
42
# File 'lib/httpx/plugins/hedging.rb', line 36

def select_connection(connection, selector)
  connection.try_yield_hedge_connection do |hedge_conn|
    super.tap do
      select_connection(hedge_conn, selector) if hedge_conn
    end
  end
end