Sha256: fbb9ee8d931cd60e18761ce8c313f2ad2bbfe69582dfdefcfee14a8bb781e2f3
Contents?: true
Size: 848 Bytes
Versions: 1
Compression:
Stored size: 848 Bytes
Contents
module Excon unless const_defined?(:VERSION) VERSION = '0.9.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 ::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.9.0 | lib/excon/constants.rb |