visionmedia/superagent — Issue #34: Synchronous vs Asynchronous
Author: quangv
Created: 2011-11-18 06:16:02+00:00
State: open

Any way to make the request synchronous as opposed to asynchronous ?

As in I want the request to fully complete, and callback executed before it runs the next command...

request.get 'http://myurl/', (req, res)->
text = res.text
console.log text

Also off-topic, but is req suppose to return 'null' ? it is for me. (using this on Node.)

Thanks.