Current Path : /opt/puppetlabs/puppet/lib/ruby/gems/2.5.0/gems/httpclient-2.8.3/sample/ |
Current File : //opt/puppetlabs/puppet/lib/ruby/gems/2.5.0/gems/httpclient-2.8.3/sample/async.rb |
require 'httpclient' c = HTTPClient.new conn = c.get_async("http://dev.ctor.org/") io = conn.pop.content while str = io.read(40) p str end