Registry / http-client / em-net-http

em-net-http

JSON →
library0.3.10rbrubygemsunverified

Monkeypatching Net::HTTP to use em-http-request under the hood for EventMachine integration.

gem install em-net-http
INSTALL
IMPORT
SIG · EM-NET-HTTP
E
em-net-http
http-clientrubyv0.3.10
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

EMNetHTTP
require 'em-net-http'

Use Net::HTTP asynchronously with EventMachine

require 'em-net-http' require 'net/http' EM.run do Net::HTTP.get('example.com', '/') do |response| puts response.body EM.stop end end
Debug
Known issues
breakingMonkeypatches Net::HTTP globally, which may affect other libraries
fix
Use with caution in applications with multiple HTTP libraries
affects: >= 0.1.0
gotchaRequires EventMachine to be running
fix
Wrap usage inside EM.run block
affects: >= 0.1.0
Upgrade
Version history
0.3.10latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
38 hits · last 30 days
node
32
OpenAI (training)
2
Amazon
1
Resources
em-net-http — gem install em-net-http · libregistry