Mike Gerwitz
7651e9499f
Remove debugging console.log from XhrHttpImplTest
...
* test/dapi/http/XhrHttpImplTest.js: Remove accidentally-committed
console.log
2016-04-19 00:05:47 -04:00
Mike Gerwitz
a6115018d2
Add x-www-form-urlencoded header for XhrHttpImpl
...
It might be the case that we may want to post raw data in the future; in
fact, I can guarantee it. We'll cross that bridge when we come to it.
* src/dapi/http/XhrHttpImpl.js (openRequest): Set ContentType header
on POST
* test/dapi/http/XhrHttpImplTest.js: Modified accordingly
2016-04-14 12:08:00 -04:00
Mike Gerwitz
a383a36bfc
HttpDataApi#request permits null data
2015-05-29 12:45:02 -04:00
Mike Gerwitz
0599acc23a
Key-value param encoding moved from XhrHttpImpl to HttpDataApi
2015-05-29 12:22:26 -04:00
Mike Gerwitz
f122d85938
XhrHttpImpl modify URL for GET request params and encode key-value
...
Some of this may be more appropriate to move out of XhrHttpImpl into
something like HttpDataApi...
2015-05-29 09:35:21 -04:00
Mike Gerwitz
ca68d12370
XhrHttpImpl no longer modifying response text
...
Status code included with error object
2015-05-28 15:15:41 -04:00
Mike Gerwitz
1669f9eeda
XhrHttpImpl#request invokes XHR send
...
This should have always been the case; I am not sure what I was thinking,
considering that the object is encapsulated.
2015-05-28 15:15:39 -04:00
Mike Gerwitz
8fbd4dd220
XhrHttpImpl#serveError
2015-05-12 16:32:49 -04:00
Mike Gerwitz
d4328968e8
XhrHttpImpl considers any 2xx status to be successful
2015-05-12 16:32:49 -04:00
Mike Gerwitz
6cc260b443
XhrHttpImpl#isSuccessful determines HTTP response success
...
May be overridden by subtypes.
2015-05-12 16:32:48 -04:00
Mike Gerwitz
6d0acf5916
Initial XhrHttpImpl implementation
2015-05-12 13:45:19 -04:00
Mike Gerwitz
e0f1c600ba
Began liberating DataApi
...
The Data API is being heavily refactored and tested; while moving files into the
Liza repository, I noticed some inefficiencies with the design. These are being
heavily improved upon.
2015-05-12 13:45:19 -04:00