# frozen_string_literal: true module EpsRapid module RequestConfig def self.configure(**options) previous_config = Thread.current[:http_options] Thread.current[:http_options] = options yield.tap do Thread.current[:http_options] = previous_config end end def self.current Thread.current[:http_options] || {} end end end