| Age | Commit message (Collapse) | Author |
|
|
|
quite messy, some tests are missing, contains an experimental jasmine DI support)
|
|
The way we determine whether it's json is lame anyway. We need to change that.
We should probably check the content type header...
|
|
|
|
You can still use cache: true, which will use $http's default cache.
|
|
|
|
+ rename verifyExpectations to verifyNoOutstandingExpectation
|
|
|
|
|
|
We strip out both:
)]}',
)]}'
|
|
- $http.pendingRequests is now an array of pending requests
- each request (its future object) has public property configuration
|
|
$httpBackend mock allows:
- expecting (asserting) requests
- stubbing (responding without asserting)
Add empty $httpBackend service (currently just wrapper for $browser.xhr)
|
|
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
|