Open c1moore opened 7 years ago
I'm trying to work on this now, but had a few questions.
$http
interceptors processed for each individual request or are they processed only for the batch request? Unfortunately, batch-request
doesn't allow headers to be inherited by the individual requests, so headers appended to requests by interceptors must be processed before building the batch request.buildRequest()
? batch-request
requires the URL to appear in the request body, so Angular won't have a chance to serialize the data if it hasn't done so by the time I start building the batch request.buildRequest()
and parseResponse()
guaranteed? I need to uniquely identify each request independently of the other using a String or Number key. Since I can use POST
requests, the *best approach might be to use the index of the request, if order is guaranteed. If not, can I add a new field to the requests?
As far as I have been able to find, batch-request is one of the most full-featured batch request libraries available for Node.js.
The format for the request looks like
While the response may look something like
I might work on a solution for this if I get some time.