xhrio.js
No description.

File Location

/goog/testing/net/xhrio.js

Classes

goog.testing.net.XhrIo
Mock implementation of goog.net.XhrIo. This doesn't provide a mock implementation for all cases, but it's not too hard to add them as needed.

Public Protected Private

Enumerations

Global Functions

goog.testing.net.XhrIo.cleanup()
Disposes all non-disposed instances of goog.testing.net.XhrIo created by goog.testing.net.XhrIo.send.
code »
goog.testing.net.XhrIo.cleanupSend_(XhrIo)
Disposes of the specified goog.testing.net.XhrIo created by goog.testing.net.XhrIo.send and removes it from goog.testing.net.XhrIo.pendingStaticSendInstances_.
Arguments:
XhrIo : goog.testing.net.XhrIo
An XhrIo created by goog.testing.net.XhrIo.send.
code »
goog.testing.net.XhrIo.getSendInstances() Array
Returns an Array containing all non-disposed instances of goog.testing.net.XhrIo created by goog.testing.net.XhrIo.send.
Returns: Array  Array of goog.testing.net.XhrIo instances.
code »
goog.testing.net.XhrIo.send(urlopt_callbackopt_methodopt_contentopt_headersopt_timeoutInterval)
Simulates the static XhrIo send method.
Arguments:
url : string
Uri to make request to.
opt_callback : Function=
Callback function for when request is complete.
opt_method : string=
Send method, default: GET.
opt_content : string=
Post data.
opt_headers : Object | goog.structs.Map=
Map of headers to add to the request.
opt_timeoutInterval : number=
Number of milliseconds after which an incomplete request will be aborted; 0 means no timeout is set.
code »

Directory net

File Reference