Sha256: 918fe8c736083f1c3c0b73800c7202aeef253d99c7d8fe0e08c8ee4a4cf64fcc

Contents?: true

Size: 524 Bytes

Versions: 17

Compression:

Stored size: 524 Bytes

Contents

module Ethon
  module Curls

    # This module contains the available proxy types.
    module ProxyTypes

      # Return proxy types.
      #
      # @example Return proxy types.
      #   Ethon::Curl.proxy_types
      #
      # @return [ Hash ] The proxy_types.
      def proxy_types
        {
          :http =>           0,
          :http_1_0 =>       1,
          :socks4 =>         4,
          :socks5 =>         5,
          :socks4a =>        6,
          :socks5_hostname =>7
        }
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
ethon-0.5.12 lib/ethon/curls/proxy_types.rb
ethon-0.5.11 lib/ethon/curls/proxy_types.rb
ethon-0.5.10 lib/ethon/curls/proxy_types.rb
ethon-0.5.9 lib/ethon/curls/proxy_types.rb
ethon-0.5.8 lib/ethon/curls/proxy_types.rb
ethon-0.5.7 lib/ethon/curls/proxy_types.rb
ethon-0.5.6 lib/ethon/curls/proxy_types.rb
ethon-0.5.4 lib/ethon/curls/proxy_types.rb
ethon-0.5.3 lib/ethon/curls/proxy_types.rb
ethon-0.5.2 lib/ethon/curls/proxy_types.rb
ethon-0.5.1 lib/ethon/curls/proxy_types.rb
ethon-0.5.0 lib/ethon/curls/proxy_types.rb
ethon-0.4.4 lib/ethon/curls/proxy_types.rb
ethon-0.4.3 lib/ethon/curls/proxy_types.rb
ethon-0.4.2 lib/ethon/curls/proxy_types.rb
ethon-0.4.1 lib/ethon/curls/proxy_types.rb
ethon-0.4.0 lib/ethon/curls/proxy_types.rb