vendor/bundle/ruby/2.7.0/gems/ethon-0.12.0/lib/ethon/easy/callbacks.rb
# Returns the debug callback. This callback is currently used
# write the raw http request headers.
#
# @example Return the callback.
#   easy.body_write_callback
#
# @return [ Proc ] The callback.
Returns the debug callback. This callback is currently used
write the raw http request headers.
Returns the debug callback . This callback is currently used write the raw http request headers .
def debug_callback
        @debug_callback ||= proc {|handle, type, data, size, udata|
          message = data.read_string(size)
          @debug_info.add type, message
          print message unless [:data_in, :data_out].include?(type)
          0
        }
      end
def debug_callback @debug_callback ||= proc { | handle , type , data , size , udata | message = data . read_string ( size ) @debug_info . add type , message print message unless [ :data_in , :data_out ] . include? ( type ) 0 } end
Returns the debug callback.
Returns the debug callback .
None
 Proc 
example
Return the callback. easy.body_write_callback
Return the callback . easy . body_write_callback