Registry / http-client / igrigorik-em-http-request

igrigorik-em-http-request

JSON →
library0.1.8rbrubygemsunverified

EventMachine based HTTP Request interface for asynchronous HTTP clients.

gem install igrigorik-em-http-request
INSTALL
IMPORT
SIG · IGRIGORIK-EM-HTTP-
I
igrigorik-em-http-request
http-clientrubyv0.1.8
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.

EventMachine::HttpRequest
require 'em-http-request'

Perform an asynchronous HTTP GET request

require 'em-http-request' EM.run do http = EventMachine::HttpRequest.new('https://example.com').get http.callback { puts http.response; EM.stop } end
Debug
Known issues
gotchaRequires EventMachine to be running; not compatible with threaded environments without careful handling.
fix
Ensure EM.run block is used and avoid mixing with threads unless using EM.defer.
affects: >= 0.0.0
Upgrade
Version history
0.1.8latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
16
OpenAI (training)
1
Resources
igrigorik-em-http-request — gem install igrigorik-em-http-request · libregistry