module Ethon::Easy::Features

This module contains class methods for feature checks

Public Instance Methods

supports_asynch_dns?() click to toggle source

Returns true if this curl version supports AsynchDNS.

@example

Ethon::Easy.supports_asynch_dns?

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

# File lib/ethon/easy/features.rb, line 23
def supports_asynch_dns?
  !!(Curl.version_info[:features] & Curl::VERSION_ASYNCHDNS)
end
Also aliased as: supports_timeout_ms?
supports_timeout_ms?()
supports_zlib?() click to toggle source

Returns true if this curl version supports zlib.

@example Return wether zlib is supported.

Ethon::Easy.supports_zlib?

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

# File lib/ethon/easy/features.rb, line 13
def supports_zlib?
  !!(Curl.version_info[:features] & Curl::VERSION_LIBZ)
end