RestClient eventMachine compatible


Adam Wiggins <adam@...>
 

If you're writing an evented program in EventMachine, using a blocking
library like RestClient is a no-go.

My suggestion would be not to try to add eventmachine support in
RestClient, but instead to make a restclient-like library (maybe
em-restclient?) which uses a similar / inspired interface, but is
built from the ground up to be evented.

Adam


Cyril Mougel <cyril.mougel@...>
 

The beneficit is if you want use RestClient in a EventMachine, the
using of net::Http is blocking.

em-http-request is non-blocking, during waiting the result of request.

On Tue, Jun 22, 2010 at 12:57 PM, <code@...> wrote:
Hi,

RestClient use Net::Http to request the web. But there are some try to
use em-http-request instead ?
I'm not aware of any, can you tell me the benefits it could provide ?


code@...
 

Hi,

RestClient use Net::Http to request the web. But there are some try to
use em-http-request instead ?
I'm not aware of any, can you tell me the benefits it could provide ?


Cyril Mougel <cyril.mougel@...>
 

Hi,

RestClient use Net::Http to request the web. But there are some try to
use em-http-request instead ?

--
Cyril Mougel
http://blog.shingara.fr