On Tuesday, June 17, 2014 12:35:39 PM UTC-6, Brian Barker wrote: > > I wanted to implement batch requests to .NET web api. The idea is you > take multiple single requests, combine them into one and the server routes > each individual request the appropriate resource then responds with a big > list of combined responses. Afaik this concept may exist on other > platforms as well. > > After some reading, I started by trying to use request interceptors. It > could work, but then I couldn't quite get how to pass each individual > response the given promise that was originally called from $http or a > $resource. > > I then spent a good amount of time trying to decorate $http, and didn't > quite see how it would work. At the very least, all of this was a great > learning exercise for deeper Angular knowledge. > > Has anyone dealt with this, or could recommend a better approach? >
edit: there's a JQuery plugin to do http batching here: https://github.com/volpav/batchjs. -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
