Sha256: 68398042e1b0f5b1e7892bca21b838b240a2c439e2fbe92c4b7d01cda177ffca

Contents?: true

Size: 269 Bytes

Versions: 13

Compression:

Stored size: 269 Bytes

Contents

# encoding: UTF-8
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../../lib')

require 'streamly'

raise Exception, "You must pass a URL to request" if ARGV[0].nil?

url = ARGV[0]
Streamly.head(url) do |chunk|
  STDOUT.write chunk
  STDOUT.flush
end
puts

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
brianmario-streamly-0.1.1 examples/streaming/head.rb
brianmario-streamly-0.1.2 examples/streaming/head.rb
brianmario-streamly-0.1.3 examples/streaming/head.rb
streamly_ffi-0.2.6 examples/streaming/head.rb
streamly_ffi-0.2.4 examples/streaming/head.rb
streamly_ffi-0.2.3 examples/streaming/head.rb
streamly_ffi-0.2.2 examples/streaming/head.rb
streamly_ffi-0.2.1 examples/streaming/head.rb
streamly_ffi-0.2.0 examples/streaming/head.rb
streamly_ffi-0.1.6 examples/streaming/head.rb
streamly_ffi-0.1.5 examples/streaming/head.rb
streamly-0.1.4 examples/streaming/head.rb
streamly-0.1.3 examples/streaming/head.rb