Module: Ethon::Curls::ProxyTypes

Included in:
Ethon::Curl
Defined in:
lib/ethon/curls/proxy_types.rb

Overview

This module contains the available proxy types.

Instance Method Summary collapse

Instance Method Details

#proxy_typesHash

Return proxy types.

Examples:

Return proxy types.

Ethon::Curl.proxy_types

Returns:

  • (Hash)

    The proxy_types.



13
14
15
16
17
18
19
20
21
22
# File 'lib/ethon/curls/proxy_types.rb', line 13

def proxy_types
  {
    :http =>           0,
    :http_1_0 =>       1,
    :socks4 =>         4,
    :socks5 =>         5,
    :socks4a =>        6,
    :socks5_hostname =>7
  }
end