Packages

package web

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. Protected

Type Members

  1. class AjaxEventStream extends WritableEventStream[XMLHttpRequest]

    AjaxEventStream performs an HTTP request and emits an dom.XMLHttpRequest on success, or an AjaxStreamError error (AjaxStatusError | AjaxNetworkError | AjaxTimeout | AjaxAbort) on failure.

    AjaxEventStream performs an HTTP request and emits an dom.XMLHttpRequest on success, or an AjaxStreamError error (AjaxStatusError | AjaxNetworkError | AjaxTimeout | AjaxAbort) on failure.

    Acceptable HTTP response status codes are 2xx and 304, others result in AjaxStatusError.

    The network request is only performed when the stream is started.

    When stream is restarted, a new request is performed, and the subsequent response is emitted. The previous request is not aborted, but its response will be ignored.

    Warning: dom.XmlHttpRequest is an ugly, imperative JS construct. We set event callbacks for onload, onerror, onabort, ontimeout, and if requested, also for onprogress and onreadystatechange. Make sure you don't override Airstream's listeners, or this stream will not work properly.

    See also

    dom.raw.XMLHttpRequest for a description of the parameters

Value Members

  1. object AjaxEventStream
  2. object DomEventStream

Ungrouped