File: async.rb

package info (click to toggle)
ruby-httpclient 2.7.1-1.1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,540 kB
  • ctags: 1,736
  • sloc: ruby: 9,119; makefile: 3
file content (8 lines) | stat: -rw-r--r-- 142 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
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