Module: HTTP::RETRY

Defined in:
lib/HTTP/RETRY.rb

Constant Summary collapse

EXCEPTIONS =
[
  Errno::ECONNREFUSED,
  Errno::ECONNRESET,
  Errno::ETIMEDOUT,
  Errno::EHOSTUNREACH,
  Errno::ENETUNREACH,
  Net::OpenTimeout,
  Net::ReadTimeout,
  SocketError,
  EOFError
].freeze
STATUS_CODES =
[429, 502, 503, 504].freeze
METHODS =
%i{get head options put delete trace}.freeze
VERBS =

Deprecated alias for METHODS; to be removed in 2.0.0.

METHODS

Class Method Summary collapse

Class Method Details

.sleep(seconds) ⇒ Object



26
27
28
# File 'lib/HTTP/RETRY.rb', line 26

def self.sleep(seconds)
  Kernel.sleep(seconds)
end