Date
1 - 4 of 4
RestClient eventMachine compatible
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 |
|
code@...
Hi,I'm not aware of any, can you tell me the benefits it could provide ? |
|
Cyril Mougel <cyril.mougel@...>
The beneficit is if you want use RestClient in a EventMachine, the
toggle quoted message
Show quoted text
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,I'm not aware of any, can you tell me the benefits it could provide ? |
|
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 |
|