module Ethon::Easies::Callbacks

def body_write_callback

Returns:
  • (Proc) - The callback.

Other tags:
    Example: Return the callback. -
def body_write_callback
  @body_write_callback ||= proc {|stream, size, num, object|
    @response_body << stream.read_string(size * num)
    size * num
  }
end