Class: SC.XHRResponse


Extends SC.Response.

Concrete implementation of SC.Response that implements support for using XHR requests. This is the default response class that SC.Request uses and it is able to create cross-browser compatible XHR requests to the address defined on a request and to notify according to the status code fallbacks registered on the request.

You will not typically deal with this class other than to receive an instance of it when handling SC.Request responses. For more information on how to create a request and handle an XHR response, please @see SC.Request.

Defined in: response.js

Since:
SproutCore 1.0

Field Summary

Instance Methods

Field Detail

encodedBody String
Implement transport-specific support for fetching tasks
Default value:
#rawRequest

Instance Method Detail

cancelTransport()
Cancels the request.
createRequest()

Creates the correct XMLHttpRequest object for this browser.

You can override this if you need to, for example, create an XHR on a different domain name from an iframe.

Returns:
XMLHttpRequest|ActiveXObject
header(key)
Returns a header value if found.
Parameters:
key String
The header key
Returns:
String
headers()
Implement transport-specific support for fetching all headers
invokeTransport()
Starts the transport of the request
Returns:
XMLHttpRequest|ActiveXObject
Documentation generated by JsDoc Toolkit 2.4.0 on Wed Apr 08 2015 10:02:21 GMT-0600 (CST)