get_http_obj (NetHTTPFetcher)

    # File lib/yadis/fetcher.rb, line 34
        def get_http_obj(uri)
          http = Net::HTTP.new(uri.host, uri.port)
          http.read_timeout = @read_timeout
          http.open_timeout = @open_timeout

          if uri.scheme == 'https'
            if HAS_OPENSSL_
              http.use_ssl = true
              if @ca_path
                http.ca_file = @ca_path
                http.verify_mode = OpenSSL::SSL::VERIFY_PEER
              else
                http.verify_mode = OpenSSL::SSL::VERIFY_NONE
                STDERR.puts("Warning: fetching over https without verifying server certificate")
              end
            else
              STDERR.puts('Warning: trying to fetch HTTPS URL without OpenSSL support')
            end
          end

          return http
        end