module Ethon::Easy::Callbacks
def set_callbacks
- Example: Set callbacks. -
def set_callbacks Curl.set_option(:writefunction, body_write_callback, handle) Curl.set_option(:headerfunction, header_write_callback, handle) Curl.set_option(:debugfunction, debug_callback, handle) @response_body = "" @response_headers = "" @debug_info = Ethon::Easy::DebugInfo.new end