Sha256: 7b1c0e569432f5a863640ac777449f8de17d5178c8f2ce45ed6f6371b20a363d

Contents?: true

Size: 1.06 KB

Versions: 1

Compression:

Stored size: 1.06 KB

Contents

module Excon
  unless const_defined?(:VERSION)
    VERSION = '0.14.0'
  end

  unless const_defined?(:CHUNK_SIZE)
    CHUNK_SIZE = 1048576 # 1 megabyte
  end

  unless const_defined?(:CR_NL)
    CR_NL = "\r\n"
  end

  unless const_defined?(:DEFAULT_CA_FILE)
    DEFAULT_CA_FILE = File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "data", "cacert.pem"))
  end

  unless const_defined?(:DEFAULT_RETRY_LIMIT)
    DEFAULT_RETRY_LIMIT = 4
  end

  unless const_defined?(:FORCE_ENC)
    FORCE_ENC = CR_NL.respond_to?(:force_encoding)
  end

  unless const_defined?(:HTTP_1_1)
    HTTP_1_1 = " HTTP/1.1\r\n"
  end

  unless const_defined?(:HTTP_VERBS)
    HTTP_VERBS = %w{connect delete get head options post put trace}
  end

  unless const_defined?(:HTTPS)
    HTTPS = 'https'
  end

  unless const_defined?(:NO_ENTITY)
    NO_ENTITY = [204, 205, 304].freeze
  end

  unless ::IO.const_defined?(:WaitReadable)
    class ::IO
      module WaitReadable; end
    end
  end

  unless ::IO.const_defined?(:WaitWritable)
    class ::IO
      module WaitWritable; end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
excon-0.14.0 lib/excon/constants.rb