response2 = nil conn = Faraday.new(:url => "http://coolness.com") do |faraday| faraday.adapter :typhoeus end conn.in_parallel do response1 = conn.get('/one') response2 = conn.get('/two') # these will return nil here since the # requests haven't been completed response1.body response2.body end net/http, excon, parton and more typhoeus 基于 libcurl,性能⾼高,⽀支持并⾏行请求