Sha256: 419b788f8d68054605842626b46bb763d698b5eaac61ca22a23b7d9b3e6bc307

Contents?: true

Size: 304 Bytes

Versions: 18

Compression:

Stored size: 304 Bytes

Contents

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

EM.run do
  Fiber.new do
    Net::HTTP.start('encrypted.google.com', :use_ssl=>true, :verify_mode => OpenSSL::SSL::VERIFY_NONE) do |http|
      res = http.get('/search?q=james')
      puts res.body
    end
    EM.stop_event_loop
  end.resume
end

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
em-net-http-0.3.10 lib/test.rb
em-net-http-0.3.9 lib/test.rb
em-net-http-0.3.8 lib/test.rb
em-net-http-npn47-0.1.1 lib/test.rb
em-net-http-npn47-0.1.0 lib/test.rb
em-net-http-0.3.7 lib/test.rb
em-net-http-0.3.6 lib/test.rb
em-net-http-0.3.5 lib/test.rb
em-net-http-0.3.2 lib/test.rb
em-net-http-0.3.1 lib/test.rb
em-net-http-0.3.0 lib/test.rb
em-net-http-0.2.5 lib/test.rb
em-net-http-0.2.4 lib/test.rb
em-net-http-0.2.3 lib/test.rb
em-net-http-0.2.0 lib/test.rb
em-net-http-0.1.3 lib/test.rb
em-net-http-0.1.2 lib/test.rb
em-net-http-0.1.1 lib/test.rb