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 = String.new @response_headers = String.new @headers_called = false @debug_info = Ethon::Easy::DebugInfo.new end