module Ethon::Easy::ResponseCallbacks
def progress(dltotal, dlnow, ultotal, ulnow)
- Example: Execute on_progress. -
def progress(dltotal, dlnow, ultotal, ulnow) if defined?(@on_progress) and not @on_progress.nil? @on_progress.each{ |callback| callback.call(dltotal, dlnow, ultotal, ulnow) } end end