Sha256: 6385ef66f6232973a25d5f4cee64b895502fb090cceaf2871efab6869ba89f4a

Contents?: true

Size: 238 Bytes

Versions: 3

Compression:

Stored size: 238 Bytes

Contents

require 'net/http/pipeline'

Net::HTTP.start 'localhost' do |http|
  req1 = Net::HTTP::Get.new '/'
  req2 = Net::HTTP::Get.new '/'

  http.pipeline req1, req2 do |res|
    puts res.code
    puts res.body[0..60].inspect
    puts
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
net-http-pipeline-1.0 sample/two_get.rb
net-http-pipeline-0.1 sample/two_get.rb
net-http-pipeline-0.0 sample/two_get.rb