rmehta
January 4, 2008, 7:57am
#1
Hi,
I am using
Net::HTTP.post_form URI.parse(Url), { … }
in my application. But this slows the process, hence I was wondering if
this http call is synchronus or asynchronus? I couldn’t find any
information about it so any help is appreciated.
Thanks.
rmehta
January 6, 2008, 6:39am
#2
Synchronous. But of course you could test this in IRB.
rmehta
January 6, 2008, 6:46pm
#3
Paul S. wrote:
Synchronous. But of course you could test this in IRB.
Thanks.How can I make an asynchronus call?
rmehta
January 7, 2008, 4:46am
#4
I don’t see any particular reason why threads wouldn’t work either.
(But I have not threaded around the HTTP API and there may be some
nuances.)
rmehta
January 6, 2008, 6:52pm
#5
On Jan 6, 2008 12:46 PM, Rm Rm [email protected] wrote:
Paul S. wrote:
Synchronous. But of course you could test this in IRB.
Thanks.How can I make an asynchronus call?
Posted via http://www.ruby-forum.com/ .
If you’re willing to rearrange your application, you can use
Ruby/EventMachine to make async HTTP calls. (SMTP, DNS, others are
supported
as well.)