aboutsummaryrefslogtreecommitdiffstats
path: root/src/service/http.js
AgeCommit message (Collapse)Author
2011-12-05feat($http): allow interceptors to be servicesIgor Minar
2011-11-30feat($http): add response interceptorsIgor Minar
2011-11-30feat($http): add promise supportIgor Minar
quite messy, some tests are missing, contains an experimental jasmine DI support)
2011-11-30feat(deferreds/promises): Q-like deferred/promise implementation with a ton ↵Igor Minar
of specs
2011-11-30fix($http): default json transformation should not crash on angular templateVojta Jina
The way we determine whether it's json is lame anyway. We need to change that. We should probably check the content type header...
2011-11-30style(): get rid off some jsl warningsVojta Jina
2011-11-30feat($http): allow passing custom cache instance per requestVojta Jina
You can still use cache: true, which will use $http's default cache.
2011-11-30feat($http): broadcast $http.request eventVojta Jina
2011-11-30fix($http): add .send() alias for .retry() to get better stack trace on errorVojta Jina
2011-11-30refactor($http): change callback matching mechanismVojta Jina
2011-11-30fix($http): allow multiple json vulnerability prefixesVojta Jina
We strip out both: )]}', )]}'
2011-11-30feat($http): expose pendingRequests and configuration objectVojta Jina
- $http.pendingRequests is now an array of pending requests - each request (its future object) has public property configuration
2011-11-30feat(mocks.$httpBackend): add $httpBackend mockVojta Jina
$httpBackend mock allows: - expecting (asserting) requests - stubbing (responding without asserting) Add empty $httpBackend service (currently just wrapper for $browser.xhr)
2011-11-30feat($http): new $http service, removing $xhr.*Vojta Jina
Features: - aborting requests - more flexible callbacks (per status code) - custom request headers (per request) - access to response headers - custom transform functions (both request, response) - caching - shortcut methods (get, head, post, put, delete, patch, jsonp) - exposing pendingCount() - setting timeout Breaks Renaming $xhr to $http Breaks Takes one parameter now - configuration object Breaks $xhr.cache removed - use configuration cache: true instead Breaks $xhr.error, $xhr.bulk removed Breaks Callback functions get parameters: response, status, headers Closes #38 Closes #80 Closes #180 Closes #299 Closes #342 Closes #395 Closes #413 Closes #414 Closes #507