Class: GetaroundUtils::Utils::HttpReporter::AsyncQueue

Inherits:
AsyncQueue
  • Object
show all
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



6
7
8
9
10
11
12
# File 'lib/getaround_utils/utils/http_reporter.rb', line 6

def self.perform(url:, params: {}, headers: {}, body: nil)
  Faraday.post(url) do |req|
    req.params = params
    req.headers = headers
    req.body = body
  end
end