Sha256: 507616a3bc401fe31d3114a69412b6d62015081b976fdd594b0468cd72c24cfa
Contents?: true
Size: 931 Bytes
Versions: 1
Compression:
Stored size: 931 Bytes
Contents
module Excon unless const_defined?(:VERSION) VERSION = '0.11.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_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.11.0 | lib/excon/constants.rb |