On Tuesday, February 12, 2013 6:18:19 PM UTC+7, vikram patil wrote: > > Thanks but its not known how many requests I am going to make ... e.g. if > code reads a file will multiple http request it may or may not pipeline > results based on > configuration specified in that file. So my implementation is around > synchronous http requests and it analyzes result structure using rules > specified for that > request and then use result to update input param for next request. > > Your problem can be easily solved by making asynchronous requests in recursive manner as *greelgorke* wrote before. But if you insist on synchronous syntax you can use *synchronize.js* library to convert asynchronous requests to synchronous.
-- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.