Class orion.xhr.Result
Wraps an XHR response or failure.
Defined in: </shared/eclipse/e4/orion/I201404012230/bundles/org.eclipse.orion.client.core/web/orion/xhr.js>.
Constructor Attributes | Constructor Name and Description |
---|---|
Field Attributes | Field Name and Description |
---|---|
Arguments passed to the orion.xhr.xhr call.
|
|
Optional.
|
|
The
response object returned by the XMLHttpRequest. |
|
The
response returned by the XMLHttpRequest, if it is a String. |
|
The HTTP status code returned by the XMLHttpRequest.
|
|
The URL that the XHR request was made to.
|
|
The underlying XMLHttpRequest object.
|
Field Detail
{Object}
args
Arguments passed to the orion.xhr.xhr call.
{String|Error}
error
Optional. If a timeout occurred or an error was thrown while performing the
XMLHttpRequest, this field contains information about the error.
The
response
object returned by the XMLHttpRequest.
It is typed according to the responseType
passed to the XHR call (by default it is a String).
{String}
responseText
The
response
returned by the XMLHttpRequest, if it is a String.
If the response
is not a String, this property is null
.
{Number}
status
The HTTP status code returned by the XMLHttpRequest.
{String}
url
The URL that the XHR request was made to.
{XMLHttpRequest}
xhr
The underlying XMLHttpRequest object.