Sha256: 57f44fb17cdc0cfbc044fda62f4a9100a66699468a31d092066ca1ef4d838fbf

Contents?: true

Size: 805 Bytes

Versions: 42

Compression:

Stored size: 805 Bytes

Contents

module Ethon
  class Easy

    # This module contains class methods for feature checks
    module Features
      # 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.
      def supports_zlib?
        !!(Curl.version_info[:features] & Curl::VERSION_LIBZ)
      end

      # Returns true if this curl version supports AsynchDNS.
      #
      # @example
      #   Ethon::Easy.supports_asynch_dns?
      #
      # @return [ Boolean ] True if supported, else false.
      def supports_asynch_dns?
        !!(Curl.version_info[:features] & Curl::VERSION_ASYNCHDNS)
      end

      alias :supports_timeout_ms? :supports_asynch_dns?

    end
  end
end

Version data entries

42 entries across 41 versions & 8 rubygems

Version Path
cloudsmith-api-0.49.94 vendor/bundle/ruby/2.6.0/gems/ethon-0.12.0/lib/ethon/easy/features.rb
cloudsmith-api-0.49.21 vendor/bundle/ruby/2.6.0/gems/ethon-0.12.0/lib/ethon/easy/features.rb
cloudsmith-api-0.49.15 vendor/bundle/ruby/2.6.0/gems/ethon-0.12.0/lib/ethon/easy/features.rb
cloudsmith-api-0.49.13 vendor/bundle/ruby/2.6.0/gems/ethon-0.12.0/lib/ethon/easy/features.rb
cloudsmith-api-0.49.9 vendor/bundle/ruby/2.3.0/gems/ethon-0.12.0/lib/ethon/easy/features.rb
cloudsmith-api-0.44.4 vendor/bundle/ruby/2.3.0/gems/ethon-0.12.0/lib/ethon/easy/features.rb
dadapush_client-1.0.1 vendor/bundle/ruby/2.3.0/gems/ethon-0.11.0/lib/ethon/easy/features.rb
approveapi-1.0.8 vendor/bundle/ruby/2.6.0/gems/ethon-0.12.0/lib/ethon/easy/features.rb
approveapi-1.0.5 vendor/bundle/ruby/2.6.0/gems/ethon-0.12.0/lib/ethon/easy/features.rb
ethon-0.12.0 lib/ethon/easy/features.rb
cloudsmith-api-0.30.7 vendor/bundle/ruby/2.3.0/gems/ethon-0.11.0/lib/ethon/easy/features.rb
color_me_shop-1.0.0 vendor/bundle/ruby/2.5.0/gems/ethon-0.11.0/lib/ethon/easy/features.rb
cloudsmith-api-0.21.4 vendor/bundle/ruby/2.3.0/gems/ethon-0.11.0/lib/ethon/easy/features.rb
ethon-0.11.0 lib/ethon/easy/features.rb
ethon-0.10.1 lib/ethon/easy/features.rb
ethon-0.10.0 lib/ethon/easy/features.rb
ethon-0.9.1 lib/ethon/easy/features.rb
ethon-0.9.0 lib/ethon/easy/features.rb
ethon-0.8.1 lib/ethon/easy/features.rb
dwolla_swagger-1.0.6 vendor/bundle/ruby/2.2.0/gems/ethon-0.8.0/lib/ethon/easy/features.rb