vendor/bundle/ruby/2.7.0/gems/typhoeus-1.4.0/lib/typhoeus/request/callbacks.rb
# Execute necessary callback and yields response. This
# include in every case on_complete and on_progress, on_success
# if successful and on_failure if not.
#
# @example Execute callbacks.
#   request.execute_callbacks
#
# @return [ void ]
#
# @api private
Execute necessary callback and yields response. This
include in every case on_complete and on_progress, on_success
if successful and on_failure if not.
Execute necessary callback and yields response . This include in every case on_complete and on_progress on_success if successful and on_failure if not .
def execute_callbacks
        callbacks = Typhoeus.on_complete + Typhoeus.on_progress + on_complete + on_progress
        if response && response.success?
          callbacks += Typhoeus.on_success + on_success
        elsif response
          callbacks += Typhoeus.on_failure + on_failure
        end
        callbacks.each do |callback|
          self.response.handled_response = callback.call(self.response)
        end
      end
def execute_callbacks callbacks = Typhoeus . on_complete + Typhoeus . on_progress + on_complete + on_progress if response && response . success? callbacks += Typhoeus . on_success + on_success elsif response callbacks += Typhoeus . on_failure + on_failure end callbacks . each do | callback | self . response . handled_response = callback . call ( self . response ) end end
Execute necessary callback and yields response.
Execute necessary callback and yields response .
None
 void 
example
Execute callbacks. request.execute_callbacks
Execute callbacks . request . execute_callbacks
api
None