module Ethon::Easy::ResponseCallbacks

def on_body(&block)

Parameters:
  • block (Block) -- The block to execute.

Other tags:
    Example: Set on_body. -
def on_body(&block)
  @on_body ||= []
  @on_body << block if block_given?
  @on_body
end