Module: Ethon::Curls::AuthTypes

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

Overview

This module contain available auth types.

Instance Method Summary collapse

Instance Method Details

#auth_typesHash

Return available auth types.

Examples:

Return auth types.

Ethon::Curl.auth_types

Returns:

  • (Hash)

    The auth types.



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

def auth_types
  {
    :basic =>       0x01,
    :digest =>      0x02,
    :gssnegotiate =>0x04,
    :ntlm =>        0x08,
    :digest_ie =>   0x10,
    :auto =>        0x1f
  }
end