http post is async or sync?

R

Rm Rm

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

Francis Cianfrocca

[Note: parts of this message were removed to make it a legal post.]

Thanks.How can I make an asynchronus call?

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

Paul Stickney

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top