module Ethon::Easy::ResponseCallbacks
def body(chunk)
-
(Object)
- If there are no on_body callbacks, returns the symbol :unyielded.
Other tags:
- Example: Execute on_body. -
def body(chunk) if defined?(@on_body) and not @on_body.nil? result = nil @on_body.each do |callback| result = callback.call(chunk, self) break if result == :abort end result else :unyielded end end