This module contains the logic to prepare and perform an easy.
Returns a pointer to the curl easy handle.
@example Return the handle.
easy.handle
@return [ FFI::Pointer ] A pointer to the curl easy handle.
# File lib/ethon/easy/operations.rb, line 13 def handle @handle ||= Curl.easy_init end
Perform the easy request.
@example Perform the request.
easy.perform
@return [ Integer ] The return code.
@api public
# File lib/ethon/easy/operations.rb, line 25 def perform @return_code = Curl.easy_perform(handle) complete Ethon.logger.debug("ETHON: performed #{self.log_inspect}") @return_code end
Prepare the easy. Options, headers and callbacks were set.
@example Prepare easy.
easy.prepare
@api public
# File lib/ethon/easy/operations.rb, line 39 def prepare set_options set_headers set_callbacks end