10 Commits

Author SHA1 Message Date
2c60bfbafc null ref fixed 2016-03-11 18:45:10 +02:00
e452aff658 Detect JSON response in XHR and auto-parse the response.
- Part of the XMLHttpRequest level 2 API.
- Fixes a crash with the Angular2 Http service.
2016-02-02 13:10:41 +02:00
7e6921c633 Make two XHR tests non-async. 2015-10-29 15:01:08 +02:00
75796ea14c Ignore request body for XHR GET requests.
Raises an error on Android. Caused by the Angular XHR backend sending an
empty string.
2015-10-29 15:01:08 +02:00
2f92cb3ff4 Implement XHR addEventListener/removeEventListener events.
- Used by the Angular XHRBackend service.
- Only supporting 'load' and 'error' now.
- Not implemented as weak events. Client responsible for detaching or not
keeping a reference to the XHR object forever. (NG XHRBackend does so)
2015-10-29 15:01:08 +02:00
8c65427730 Fix XHR statusText property to return just the text
In order to follow the spec the XHR statusText property should
return just the status text without the status code. Adding
tests to guard this behavior.
2015-08-14 20:05:10 +03:00
8b32ed0176 tests fixed 2015-07-30 09:56:24 +03:00
272597f7bd global XMLHttpRequest declaration extended 2015-07-20 14:52:04 +03:00
e2f464e1d2 FormData support added 2015-07-20 14:42:29 +03:00
d3c987f827 XMLHttpRequest separated from http module 2015-07-20 10:58:29 +03:00