net.IeCorsXhrAdapter Extends
An adapter around Internet Explorer's XDomainRequest object that makes it look like a standard XMLHttpRequest. This can be used instead of XMLHttpRequest to support CORS.

Inheritance

Constructor

goog.net.IeCorsXhrAdapter()

Instance Methods

Public Protected Private
abort()
No description.
code »
getAllResponseHeaders() string
Returns the response headers from the server. This implemntation only returns the 'content-type' header.
Returns: string  The headers returned from the server.
code »
getResponseHeader(key) string
Returns the value of the response header identified by key. This implementation only supports the 'content-type' header.
Arguments:
key : string
The request header to fetch. If this parameter is set to 'content-type' (case-insensitive), this function returns the value of the 'content-type' request header. If this parameter is set to any other value, this function always returns an empty string.
Returns: string  The value of the response header, or an empty string if key is not 'content-type' (case-insensitive).
code »
handleError_()
Handles a request that has failed to load.
code »
handleLoad_()
Handles a request that has fully loaded successfully.
code »
handleProgress_()
Handles a request that is in the process of loading.
code »
handleTimeout_()
Handles a request that timed out.
code »
open(methodurlopt_async)
Opens a connection to the provided URL.
Arguments:
method : string
The HTTP method to use. Valid methods include GET and POST.
url : string
The URL to contact. The authority of this URL must match the authority of the current page's URL (e.g. http or https).
opt_async : ?boolean=
Whether the request is asynchronous, defaulting to true. XDomainRequest does not support syncronous requests, so setting it to false will actually raise an exception.
code »
send(opt_content)
Sends the request to the remote server. Before calling this function, always call open.
Arguments:
opt_content : (ArrayBuffer | ArrayBufferView | Blob | Document | FormData | null | string)=
The content to send as POSTDATA, if any. Only string data is supported by this implementation.
code »
setReadyState_(readyState)
Sets this XHR's ready state and fires the onreadystatechange listener (if one is set).
Arguments:
readyState : number
The new ready state.
code »
setRequestHeader(keyvalue)
Sets a request header to send to the remote server. Because this implementation does not support request headers, this function does nothing.
Arguments:
key : string
The name of the HTTP header to set. Ignored.
value : string
The value to set for the HTTP header. Ignored.
code »

Instance Properties

onreadystatechange :
The simulated ready state change callback function.
Code »
readyState :
The simulated ready state.
Code »
responseText :
The simulated response text parameter.
Code »
responseXML :
No description.
Code »
status :
The simulated status code
Code »
statusText :
No description.
Code »
xdr_ :
The underlying XDomainRequest used to make the HTTP request.
Code »

Package net

Package Reference