class LHC::Retry

def after_response

def after_response
  response.request.options[:retries] ||= 0
  return unless retry?(response.request)
  response.request.options[:retries] += 1
  current_retry = response.request.options[:retries]
  begin
    response.request.run!
  rescue LHC::Error
    return
  end
  response.request.response if current_retry == response.request.options[:retries]
end