Sha256: 91f31af23221905d3a29de4c40b3a6f4075271a7ed054ab82b247fbe413a59a2

Contents?: true

Size: 273 Bytes

Versions: 1

Compression:

Stored size: 273 Bytes

Contents

$: << '.'
require File.dirname(__FILE__) + '/em-net-http'

EM.run do
  Fiber.new do
    http = Net::HTTP.new('www.google.com') 
    http.start do |http|
      res = http.get('/search?q=james')
      p res['transfer-encoding']
    end
    EM.stop_event_loop
  end.resume
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
em-net-http-0.1.0 lib/test.rb