module Ethon::Easy::ResponseCallbacks

def on_progress(&block)

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

Other tags:
    Example: Set on_progress. -
def on_progress(&block)
  @on_progress ||= []
  if block_given?
    @on_progress << block
    set_progress_callback
    self.noprogress = 0
  end
  @on_progress
end