2
unless const_defined?(:VERSION)
6
unless const_defined?(:CHUNK_SIZE)
7
CHUNK_SIZE = 1048576 # 1 megabyte
10
unless const_defined?(:CR_NL)
14
unless const_defined?(:DEFAULT_RETRY_LIMIT)
15
DEFAULT_RETRY_LIMIT = 4
18
unless const_defined?(:FORCE_ENC)
19
FORCE_ENC = CR_NL.respond_to?(:force_encoding)
22
unless const_defined?(:HTTP_1_1)
23
HTTP_1_1 = " HTTP/1.1\r\n"
26
unless const_defined?(:HTTP_VERBS)
27
HTTP_VERBS = %w{connect delete get head options post put trace}
30
unless const_defined?(:HTTPS)
34
unless const_defined?(:NO_ENTITY)
35
NO_ENTITY = [204, 205, 304].freeze
38
unless ::IO.const_defined?(:WaitReadable)
40
module WaitReadable; end
44
unless ::IO.const_defined?(:WaitWritable)
46
module WaitWritable; end