Http post is async or sync?

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.

Synchronous. But of course you could test this in IRB.

Paul S. wrote:

Synchronous. But of course you could test this in IRB.

Thanks.How can I make an asynchronus call?

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.)

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.)

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs