Sha256: 533d839bd8d43783208431b7c82672add5dae905f4ba583a10b0a889f6effbeb

Contents?: true

Size: 1.45 KB

Versions: 3

Compression:

Stored size: 1.45 KB

Contents

module Ethon
  module Curl
    # :nodoc:
    VERSION_NOW = 3

    # Flag. Initialize SSL.
    GLOBAL_SSL     = 0x01
    # Flag. Initialize win32 socket libraries.
    GLOBAL_WIN32   = 0x02
    # Flag. Initialize everything possible.
    GLOBAL_ALL     = (GLOBAL_SSL | GLOBAL_WIN32)
    # Flag. Initialize everything by default.
    GLOBAL_DEFAULT = GLOBAL_ALL

    # :nodoc:
    EasyCode = enum(:easy_code, easy_codes)
    # :nodoc:
    MultiCode = enum(:multi_code, multi_codes)

    # :nodoc:
    EasyOption = enum(:easy_option, easy_options.to_a.flatten)
    # :nodoc:
    MultiOption = enum(:multi_option, multi_options.to_a.flatten)
    # :nodoc:
    OptionType = enum(option_types.to_a.flatten)

    # :nodoc:
    InfoType = enum(info_types.to_a.flatten)

    # Info details, refer
    # https://github.com/bagder/curl/blob/master/src/tool_writeout.c#L66 for details
    Info = enum(:info, infos.to_a.flatten)

    # Form options, used by FormAdd for temporary storage, refer
    # https://github.com/bagder/curl/blob/master/lib/formdata.h#L51 for details
    FormOption = enum(:form_option, form_options)

    # :nodoc:
    Auth = enum(auth_types.to_a.flatten)

    # :nodoc:
    Protocols = enum(protocols.to_a.flatten)

    # :nodoc:
    Proxy = enum(proxy_types.to_a.flatten)

    # :nodoc:
    SSLVersion = enum(ssl_versions.to_a.flatten)

    # :nodoc:
    HTTPVersion = enum(http_versions.to_a.flatten)

    # :nodoc:
    MsgCode = enum(:msg_code, msg_codes)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ethon-0.5.10 lib/ethon/curls/constants.rb
ethon-0.5.9 lib/ethon/curls/constants.rb
ethon-0.5.8 lib/ethon/curls/constants.rb