module Ethon::Easy::ResponseCallbacks

def on_headers(&block)

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

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