Class: Kentico::Kontent::Delivery::RequestManager
- Inherits:
-
Object
- Object
- Kentico::Kontent::Delivery::RequestManager
- Defined in:
- lib/delivery/client/request_manager.rb
Constant Summary collapse
- MAX_ATTEMPTS =
6
- INITIAL_DELAY =
0.2
- RETRY_WHEN_CODE =
[408, 500, 502, 503, 504].freeze
Class Method Summary collapse
Class Method Details
.start(query, headers) ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/delivery/client/request_manager.rb', line 13 def start(query, headers) @query = query @headers = headers @times_run = 1 @delay = INITIAL_DELAY @url = @query.provide_url continue end |