Class: GetaroundUtils::Utils::HttpReporter::AsyncQueue
- Inherits:
-
AsyncQueue
- Object
- AsyncQueue
- GetaroundUtils::Utils::HttpReporter::AsyncQueue
- Defined in:
- lib/getaround_utils/utils/http_reporter.rb
Constant Summary
Constants inherited from AsyncQueue
AsyncQueue::MAX_QUEUE_SIZE, AsyncQueue::MUTEX
Class Method Summary collapse
Methods inherited from AsyncQueue
perform_async, reset, start_once!, terminate
Methods included from Mixins::Loggable
#base_append_infos_to_loggable, #base_loggable_logger, #class_name, #loggable
Class Method Details
.perform(url:, params: {}, headers: {}, body: nil) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/getaround_utils/utils/http_reporter.rb', line 7 def self.perform(url:, params: {}, headers: {}, body: nil) Faraday.post(url) do |req| req.[:open_timeout] = 1 req.[:timeout] = 1 req.params = params req.headers = headers req.body = body end end |