Packages

object AjaxEventStream

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AjaxEventStream
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. final case class AjaxAbort(xhr: XMLHttpRequest) extends AjaxStreamError with Product with Serializable
  2. final case class AjaxNetworkError(xhr: XMLHttpRequest, message: String) extends AjaxStreamError with Product with Serializable
  3. final case class AjaxStatusError(xhr: XMLHttpRequest, status: Int, message: String) extends AjaxStreamError with Product with Serializable
  4. sealed abstract class AjaxStreamError extends Exception

    A more detailed version of dom.ext.AjaxException (no relation)

  5. final case class AjaxTimeout(xhr: XMLHttpRequest) extends AjaxStreamError with Product with Serializable

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  6. def defaultIsStatusCodeSuccess(status: Int): Boolean
  7. def delete(url: String, data: InputData = null, timeoutMs: Int = 0, headers: Map[String, String] = Map.empty, withCredentials: Boolean = false, responseType: String = "", isStatusCodeSuccess: (Int) => Boolean = defaultIsStatusCodeSuccess, requestObserver: Observer[XMLHttpRequest] = Observer.empty, progressObserver: Observer[(XMLHttpRequest, ProgressEvent)] = Observer.empty, readyStateChangeObserver: Observer[XMLHttpRequest] = Observer.empty): AjaxEventStream

    Returns an EventStream that performs an HTTP DELETE request.

    Returns an EventStream that performs an HTTP DELETE request.

    See also

    AjaxEventStream

  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def get(url: String, data: InputData = null, timeoutMs: Int = 0, headers: Map[String, String] = Map.empty, withCredentials: Boolean = false, responseType: String = "", isStatusCodeSuccess: (Int) => Boolean = defaultIsStatusCodeSuccess, requestObserver: Observer[XMLHttpRequest] = Observer.empty, progressObserver: Observer[(XMLHttpRequest, ProgressEvent)] = Observer.empty, readyStateChangeObserver: Observer[XMLHttpRequest] = Observer.empty): AjaxEventStream

    Returns an EventStream that performs an HTTP GET request.

    Returns an EventStream that performs an HTTP GET request.

    See also

    AjaxEventStream

  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  13. def initRequest(timeoutMs: Int = 0, withCredentials: Boolean = false, responseType: String = ""): XMLHttpRequest

    Initializes and configures the XmlHttpRequest.

    Initializes and configures the XmlHttpRequest. This does not cause any network activity.

    Note: after initializing the request, you need to openRequest(), and then sendRequest()

    AjaxEventStream already does this internally. This is provided as a building block for custom logic.

  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  18. def patch(url: String, data: InputData = null, timeoutMs: Int = 0, headers: Map[String, String] = Map.empty, withCredentials: Boolean = false, responseType: String = "", isStatusCodeSuccess: (Int) => Boolean = defaultIsStatusCodeSuccess, requestObserver: Observer[XMLHttpRequest] = Observer.empty, progressObserver: Observer[(XMLHttpRequest, ProgressEvent)] = Observer.empty, readyStateChangeObserver: Observer[XMLHttpRequest] = Observer.empty): AjaxEventStream

    Returns an EventStream that performs an HTTP PATCH request.

    Returns an EventStream that performs an HTTP PATCH request.

    See also

    AjaxEventStream

  19. def post(url: String, data: InputData = null, timeoutMs: Int = 0, headers: Map[String, String] = Map.empty, withCredentials: Boolean = false, responseType: String = "", isStatusCodeSuccess: (Int) => Boolean = defaultIsStatusCodeSuccess, requestObserver: Observer[XMLHttpRequest] = Observer.empty, progressObserver: Observer[(XMLHttpRequest, ProgressEvent)] = Observer.empty, readyStateChangeObserver: Observer[XMLHttpRequest] = Observer.empty): AjaxEventStream

    Returns an EventStream that performs an HTTP POST request.

    Returns an EventStream that performs an HTTP POST request.

    See also

    AjaxEventStream

  20. def put(url: String, data: InputData = null, timeoutMs: Int = 0, headers: Map[String, String] = Map.empty, withCredentials: Boolean = false, responseType: String = "", isStatusCodeSuccess: (Int) => Boolean = defaultIsStatusCodeSuccess, requestObserver: Observer[XMLHttpRequest] = Observer.empty, progressObserver: Observer[(XMLHttpRequest, ProgressEvent)] = Observer.empty, readyStateChangeObserver: Observer[XMLHttpRequest] = Observer.empty): AjaxEventStream

    Returns an EventStream that performs an HTTP PUT request.

    Returns an EventStream that performs an HTTP PUT request.

    See also

    AjaxEventStream

  21. def sendRequest(request: XMLHttpRequest, method: String, url: String, data: InputData = null, headers: Map[String, String] = Map.empty): Unit

    The request should be initialized and configured with all the callbacks by this point.

    The request should be initialized and configured with all the callbacks by this point.

    AjaxEventStream already does this internally. This is provided as a building block for custom logic.

  22. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  26. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped