angular/angular.js — pull request #9319 by sjurba (2014-09-28 18:54:49+00:00)
Title: feat ($http): Add custom createXhr factory to config object

To be able to construct non-standard or customised XHR objects a factory an optional factory function can be added to the config object. This is required for use of the mozAnon and mozSystem options for FirefoxOS.
See https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest#XMLHttpRequest() for details.

This is an alternative solution to the one suggested in PR #7903. Closes #2318