A client that uses the Apache HttpCore NIO library to do HTTP requests.
<pre> require ‘http_reactor’
uris = [‘www.yahoo.com/’,‘http://www.google.com/’] requests = uris.map { |uri| HttpReactor::Request.new(uri) }
HttpReactor::Client.new(requests) do |response, context|
puts "Response code: #{response.code}" puts "Response body: #{response.body}"
end </pre>