# File lib/analyzer_tools/bench.rb, line 65 def do_request s = TCPSocket.new @uri.host, @uri.port s.puts "GET #{@uri.request_uri} HTTP/1.0\r\n" s.puts "Host: #{@uri.host}\r\n" s.puts "User-Agent: RubyBench\r\n" s.puts "\r\n" s.flush response = s.read ensure s.close unless s.nil? end