Module | Ethon::Curls::Infos |
In: |
lib/ethon/curls/infos.rb
|
This module contains logic for the available informations on an easy, eg.: connect_time.
curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTDEBUGFUNCTION github.com/bagder/curl/blob/master/include/curl/curl.h#L378
@example Return debug info types.
Ethon::Curl.debug_info_types
@return [ Hash ] The info types available to curl_debug_callback.
Return info as float
@example Return info.
Curl.get_info_double(:response_code, easy)
@param [ Symbol ] option The option name. @param [ ::FFI::Pointer ] handle The easy handle.
@return [ Float ] The info.
Return info as integer.
@example Return info.
Curl.get_info_long(:response_code, easy)
@param [ Symbol ] option The option name. @param [ ::FFI::Pointer ] handle The easy handle.
@return [ Integer ] The info.
Return info as string.
@example Return info.
Curl.get_info_string(:primary_ip, easy)
@param [ Symbol ] option The option name. @param [ ::FFI::Pointer ] handle The easy handle.
@return [ String ] The info.
Return info types.
@example Return info types.
Ethon::Curl.info_types
@return [ Hash ] The info types.
Return Info details, refer github.com/bagder/curl/blob/master/src/tool_writeout.c#L66 for details
@example Return infos.
Ethon::Curl.infos
@return [ Hash ] The infos.