vendor/bundle/ruby/2.7.0/gems/ethon-0.12.0/lib/ethon/easy/callbacks.rb
# Returns the body write callback.
#
# @example Return the callback.
#   easy.body_write_callback
#
# @return [ Proc ] The callback.
Returns the body write callback.
Returns the body write callback .
def body_write_callback
        @body_write_callback ||= proc do |stream, size, num, object|
          headers
          result = body(chunk = stream.read_string(size * num))
          @response_body << chunk if result == :unyielded
          result != :abort ? size * num : -1
        end
      end
def body_write_callback @body_write_callback ||= proc do | stream , size , num , object | headers result = body ( chunk = stream . read_string ( size * num ) ) @response_body << chunk if result == :unyielded result != :abort ? size * num : - 1 end end
Returns the body write callback.
Returns the body write callback .
None
 Proc 
example
Return the callback. easy.body_write_callback
Return the callback . easy . body_write_callback