Methods

always (alwaysCallbacks:EitherType<Function, Array<Function>>, ?alwaysCallbacks:EitherType<Function, Array<Function>>):Deferred

Add handlers to be called when the Deferred object is either resolved or rejected.

done (doneCallbacks:EitherType<Function, Array<Function>>, ?doneCallbacks:EitherType<Function, Array<Function>>):Deferred

Add handlers to be called when the Deferred object is resolved.

fail (failCallbacks:EitherType<Function, Array<Function>>, ?failCallbacks:EitherType<Function, Array<Function>>):Deferred

Add handlers to be called when the Deferred object is rejected.

isRejected ():Bool

Determine whether a Deferred object has been rejected.

isResolved ():Bool

Determine whether a Deferred object has been resolved.

pipe (?doneFilter:Function, ?failFilter:Function):Promise

pipe (?doneFilter:Function, ?failFilter:Function, ?progressFilter:Function):Promise

Utility method to filter and/or chain Deferreds.

progress (progressCallbacks:EitherType<Function, EitherType<Array<Dynamic>, Array<Function>>>, ?progressCallbacks:EitherType<Function, EitherType<Array<Dynamic>, Array<Function>>>):Deferred

Add handlers to be called when the Deferred object generates progress notifications.

state ():String

Determine the current state of a Deferred object.

then (doneCallbacks:EitherType<Function, Array<Function>>, failCallbacks:EitherType<Function, Array<Function>>):Promise

then (doneFilter:Function, ?failFilter:Function, ?progressFilter:Function):Promise

then (doneCallbacks:EitherType<Function, Array<Function>>, failCallbacks:EitherType<Function, Array<Function>>, ?progressCallbacks:EitherType<Function, Array<Function>>):Promise

Add handlers to be called when the Deferred object is resolved, rejected, or still in progress.

Inherited Variables

Inherited Methods

Defined by XMLHttpRequest

abort ():Void

Throws:

null

DOMError

getAllResponseHeaders ():String

Throws:

null

DOMError

getResponseHeader (header:String):String

Throws:

null

DOMError

open (method:String, url:String, async:Bool, ?user:String, ?password:String):Void

open (method:String, url:String):Void

Throws:

null

DOMError

overrideMimeType (mime:String):Void

Throws:

null

DOMError

send (data:Dynamic):Void

send ():Void

send (data:ArrayBuffer):Void

send (data:ArrayBufferView):Void

send (data:Blob):Void

send (data:HTMLDocument):Void

send (data:String):Void

send (data:FormData):Void

Throws:

null

DOMError

setRequestHeader (header:String, value:String):Void

Throws:

null

DOMError

Defined by EventTarget

addEventListener (type:String, listener:Function, capture:Bool = false):Void

addEventListener (type:String, listener:EventListener, capture:Bool = false, ?wantsUntrusted:Bool):Void

Throws:

null

DOMError

dispatchEvent (event:Event):Bool

Throws:

null

DOMError

removeEventListener (type:String, listener:Function, capture:Bool = false):Void

removeEventListener (type:String, listener:EventListener, capture:Bool = false):Void

Throws:

null

DOMError