Method: HTTPX::Callbacks#emit

Defined in:
lib/httpx/callbacks.rb

#emit(type, *args) ⇒ Object



17
18
19
20
# File 'lib/httpx/callbacks.rb', line 17

def emit(type, *args)
  log { "emit #{type.inspect} callbacks" } if respond_to?(:log)
  callbacks(type).delete_if { |pr| :delete == pr.call(*args) } # rubocop:disable Style/YodaCondition
end