module Ethon::Easies::Callbacks

def header_write_callback

Returns:
  • (Proc) - The callback.

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