aboutsummaryrefslogtreecommitdiffstats
path: root/test/service/httpSpec.js
AgeCommit message (Collapse)Author
2012-03-28chore(module): move files around in preparation for more modulesMisko Hevery
2012-03-23feat(http): added params parameterMisko Hevery
The params parameter can now be used to serialize parameters in the URLs. The serialization does proper escaping and JSON encoding if it is an object.
2012-03-20fix($http): don't send Content-Type header when no dataIgor Minar
When a http request has no data (body), we should not send the Content-Type header as it causes problems for some server-side frameworks. Closes #749
2012-02-25fix($http): Do not serialize File objectVojta Jina
2012-01-13style(*): small fixesIgor Minar
2012-01-13fix($http): anonnymous response interceptors should be treated as factoriesIgor Minar
2012-01-13fix($http): remove support for PATCH + better whenXXX, expectXXX apiIgor Minar
- there are too many unknowns about PATCH, so I'm dropping its support until we know that this is actually useful - expectGET, expectHEAD and expectJSON (and the same for whenXXX) should not require response data to be specified
2012-01-12refactor(module): strict separation between module-config / app-runtimeMisko Hevery
2012-01-09feat($http): expose req/resp headers to transform fnsIgor Minar
2012-01-09fix($http): fix and cleanup $http and friendsIgor Minar
$http: - use promises internally - get rid of XhrFuture that was previously used internally - get rid of $browser.defer calls for async stuff (serving from cache), promises will take care of asynchronicity - fix transformation bugs (when caching requested + multiple request pending + error is returned) - get rid of native header parsing and instead just lazily parse the header string $httpBackend: - don't return raw/mock XMLHttpRequest object (we don't use it for anything anymore) - call the callback with response headers string mock $httpBackend: - unify response api for expect and when - call the callback with response headers string - changed the expect/when failure error message so that EXPECTED and GOT values are aligned Conflicts: src/service/http.js test/service/compilerSpec.js test/service/httpSpec.js
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-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-30refactor(mock.$httpBackend): rename when().then() to when().respond()Vojta Jina
2011-11-30feat(mock.$httpBackend): add verifyNoOutstandingRequest methodVojta Jina
+ rename verifyExpectations to verifyNoOutstandingExpectation
2011-11-30feat($http): broadcast $http.request eventVojta 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