module Ethon::Easy::Operations

def handle

Returns:
  • (FFI::Pointer) - A pointer to the curl easy handle.

Other tags:
    Example: Return the handle. -
def handle
  @handle ||= FFI::AutoPointer.new(Curl.easy_init, Curl.method(:easy_cleanup))
end

def perform

Returns:
  • (Integer) - The return code.

Other tags:
    Example: Perform the request. -
def perform
  @return_code = Curl.easy_perform(handle)
  Ethon.logger.debug { "ETHON: performed #{self.log_inspect}" }
  complete
  @return_code
end

def prepare

Deprecated:
  • It is no longer necessary to call prepare.

Other tags:
    Example: Prepare easy. -
def prepare
  Ethon.logger.warn(
    "ETHON: It is no longer necessary to call "+
    "Easy#prepare. It's going to be removed "+
    "in future versions."
  )
end