Module: Misty::HTTP::NetHTTP
Instance Method Summary collapse
Instance Method Details
#net_http(uri, ssl_verify_mode, log) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/misty/http/net_http.rb', line 4 def net_http(uri, ssl_verify_mode, log) http = Net::HTTP.new(uri.host, uri.port) http.set_debug_output(log) if log.level == Logger::DEBUG if uri.scheme == "https" http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE unless ssl_verify_mode end http end |