module Ethon::Curl
def set_option(option, value, handle)
def set_option(option, value, handle) case value when String easy_setopt_string(handle, option, value.to_s) when Integer easy_setopt_long(handle, option, value) when Proc, FFI::Function easy_setopt_callback(handle, option, value) else easy_setopt(handle, option, value) if value end end