module Ethon::Easy::Informations

This module contains the methods to return informations from the easy handle. See curl.haxx.se/libcurl/c/curl_easy_getinfo.html for more information.

Constants

AVAILABLE_INFORMATIONS

Holds available informations and their type, which is needed to request the informations from libcurl.

Public Instance Methods

supports_zlib?() click to toggle source

Returns this curl version supports zlib.

@example Return wether zlib is supported.

easy.supports_zlib?

@return [ Boolean ] True if supported, else false.

# File lib/ethon/easy/informations.rb, line 78
def supports_zlib?
  !!(Curl.version.match(/zlib/))
end