require \'net/http\'
urls = [
{\'link\' => \'http://www.google.com/\'},
{\'link\' => \'http://www.facebook.com/\'},
{\'link\' => \'http://www.yahoo.c
If its just about plain http requests in async style, probably Unirest is the best fit to achieve it.
Asnc request is as simple as:
response = Unirest.post "http://httpbin.org/post",
headers:{ "Accept" => "application/json" },
parameters:{ :age => 23, :foo => "bar" } {|response|
response.code # Status code
response.headers # Response headers
response.body # Parsed body
response.raw_body # Unparsed body
}