Commit graph

17 commits

Author SHA1 Message Date
Pat Cavit
5aac004709 refactor: XHR errors have response/code fields
So that there's no chance of data loss and it's trivial to get the response code (because it's hella useful)

Fixes #1866
Fixes #1876
2017-07-18 22:53:17 -07:00
Isiah Meadows
1cc5fa5ba7 "use strict" and other linty fixes 2017-03-03 18:24:38 -05:00
Bryce Gibson
a946ef5315 Fix xhr abort test.
Need to be more creative about ensuring that onreadystatechange is
called, but that the test conditions execute after that the function
(that does nothing...) is called.
2017-02-15 13:30:50 +11:00
Bryce Gibson
27881af668 Ignore xhr.status for "file://" requests. 2017-02-15 08:34:40 +11:00
Bryce Gibson
6a617aeb87 Add tests for abort functionality. 2017-02-12 16:38:45 +11:00
Leo
1b43c3a106 allow array data in m.request 2017-01-23 18:03:33 -05:00
Hugo Freitas
4a98bb0503 remove mutating of interpolate data 2017-01-17 01:05:09 -03:00
impinball
95d738bc71 Add support for options.headers in m.request + tests/docs
I also had to edit the mocks accordingly, so I could inspect the headers set.
2016-12-30 02:52:00 -05:00
Leo Horie
0b84a3f39f fix tests from #1470 2016-12-07 11:58:30 -05:00
Barney Carroll
d74fa75832 Test branched rejection handler resolution 2016-12-07 16:14:08 +00:00
Leo Horie
0dce0e7911 normalize args for jsonp, document background option 2016-12-02 21:19:45 -05:00
Leo Horie
0080d1dff0 fix request redrawing semantics 2016-12-02 17:42:34 -05:00
Leo Horie
bc8cf4ed76 change m.request return value from stream to promise
remove m.prop
add m.Promise
update tests and examples
2016-11-13 22:44:22 -05:00
Barney Carroll
beccd16dd7 Fetch-style signature overload 2016-11-11 18:37:56 +00:00
Leo Horie
aef4ab16e9 fix tests 2016-10-26 20:27:20 -04:00
Leo Horie
f201ea73ff ensure internal streams have same constructor as public streams 2016-08-24 01:08:20 -04:00
Leo Horie
80c25e3809 rename routeresolver methods to {onmatch,view}
expose some piecemeal modules
rename internal xhr to request
mirror internal stream api to match public api
2016-08-17 00:10:47 -04:00
Renamed from request/tests/test-xhr.js (Browse further)