Sha256: fca34d6de09fd28d8628661f5346ae29e60d064d0bbe1ce8c4494355a49ee851

Contents?: true

Size: 431 Bytes

Versions: 18

Compression:

Stored size: 431 Bytes

Contents

module Logtail
  module LogDevices
    class HTTP
      # Represents an attempt to deliver a request. Requests can be retried, hence
      # why we keep track of the number of attempts.
      class RequestAttempt
        attr_reader :attempts, :request

        def initialize(req)
          @attempts = 0
          @request = req
        end

        def attempted!
          @attempts += 1
        end
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
logtail-ruby-0.1.3 lib/logtail/log_devices/http/request_attempt.rb
logtail-0.1.13 lib/logtail/log_devices/http/request_attempt.rb
logtail-0.1.12 lib/logtail/log_devices/http/request_attempt.rb
logtail-0.1.11 lib/logtail/log_devices/http/request_attempt.rb
logtail-0.1.10 lib/logtail/log_devices/http/request_attempt.rb
logtail-0.1.9 lib/logtail/log_devices/http/request_attempt.rb
logtail-0.1.8 lib/logtail/log_devices/http/request_attempt.rb
logtail-0.1.7 lib/logtail/log_devices/http/request_attempt.rb
logtail-0.1.6 lib/logtail/log_devices/http/request_attempt.rb
logtail-0.1.5 lib/logtail/log_devices/http/request_attempt.rb
logtail-0.1.4 lib/logtail/log_devices/http/request_attempt.rb
logtail-0.1.3 lib/logtail/log_devices/http/request_attempt.rb
logtail-0.1.2 lib/logtail/log_devices/http/request_attempt.rb
logtail-0.1.1 lib/logtail/log_devices/http/request_attempt.rb
logtail-0.1.0 lib/logtail/log_devices/http/request_attempt.rb
logtail-ruby-0.1.2 lib/logtail/log_devices/http/request_attempt.rb
logtail-ruby-0.1.1 lib/logtail/log_devices/http/request_attempt.rb
logtail-ruby-0.1.0 lib/logtail/log_devices/http/request_attempt.rb