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
- VERBS =
%i{get head options put delete trace}.freeze
Class Method Summary collapse
Class Method Details
.sleep(seconds) ⇒ Object
24 25 26 |
# File 'lib/HTTP/RETRY.rb', line 24 def self.sleep(seconds) Kernel.sleep(seconds) end |