search

goog.net.WrapperXmlHttpFactory

Provided By
Extends

An xhr factory subclass which can be constructed using two factory methods. This exists partly to allow the preservation of goog.net.XmlHttp.setFactory() with an unchanged signature.

new WrapperXmlHttpFactory( xhrFactory, optionsFactory )

Parameters
xhrFactoryfunction(): (goog.net.XhrLike|XMLHttpRequest)

A function which returns a new XHR object.

optionsFactoryfunction(): Object

A function which returns the options associated with xhr objects from this factory.

Instance Methods