'Nested' Requests

5 views
Skip to first unread message

namelessjon

unread,
Nov 14, 2009, 9:21:45 PM11/14/09
to Typhoeus
Hi

I'm trying to work on something similar to the parallel requests
example in the Readme. Basically for a number of urls, visit one and
process it. Then maybe, as a result of that, make a second request.
If the second request is made, the result should be the second request
result, else the first result (essentially). But trying to set the
return of the first request block to the second, inner, request does
not work.

I've put the code in a gist: https://gist.github.com/14af8b0e11d078729f47

How can this be achieved?

Regards
Jon
Reply all
Reply to author
Forward
0 new messages