☰
Debian Codegraph
@
2.9.0-1
/
/
sample
/
async.rb
☽
☼
sample/async.rb
code
plain
raw
GPL-2+
or
Ruby
(C) 2000-2014 NAKAMURA, Hiroshi <
[email protected]
>.
debian/copyright
1
require 'httpclient'
2
3
c = HTTPClient.new
4
conn = c.get_async("http://dev.ctor.org/")
5
io = conn.pop.content
6
while str = io.read(40)
7
p str
8
end