Sha256: 53d8162c7a2fa4986b6df7712ed61b8e864dcfe577a950222628118e834f5d14
Contents?: true
Size: 536 Bytes
Versions: 20
Compression:
Stored size: 536 Bytes
Contents
# # extends HTTParty by adding configurable timeout support # module HTTParty class Request private def http http = Net::HTTP.new(uri.host, uri.port, options[:http_proxyaddr], options[:http_proxyport]) http.use_ssl = (uri.port == 443) http.verify_mode = OpenSSL::SSL::VERIFY_NONE if options[:timeout] && options[:timeout].is_a?(Integer) http.open_timeout = options[:timeout] http.read_timeout = options[:timeout] end http end end end
Version data entries
20 entries across 20 versions & 2 rubygems