[Feature request] Multiple requests at once #201

natos opened this Issue Mar 9, 2012 · 0 comments


None yet
2 participants

natos commented Mar 9, 2012

I'm using it to mashup different APIs on a single request call, and it's quite handy. I've wrapped it into a function, but I don't think its the best way to do it: https://gist.github.com/2001487

The sintaxis I'm using is:

__request( ['http://foo', 'http://bar'], function(response) { ... });

The response argument is an object that group all the responses by url:

{ 'http://foo': { error:{..}, body:{...}, response:{...} } , 'http://bar': { error:{..}, body:{...}, response:{...} } }

mikeal closed this Jul 25, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment