http()
private
Creates new
Net::HTTP instance for communication with remote service and resources.
# File activeresource/lib/active_resource/connection.rb, line 147
def http
http = Net::HTTP.new(@site.host, @site.port)
http.use_ssl = @site.is_a?(URI::HTTPS)
http.verify_mode = OpenSSL::SSL::VERIFY_NONE if http.use_ssl
http
end