object AjaxEventStream
- Alphabetic
- By Inheritance
- AjaxEventStream
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- final case class AjaxAbort(xhr: XMLHttpRequest) extends AjaxStreamError with Product with Serializable
- final case class AjaxNetworkError(xhr: XMLHttpRequest, message: String) extends AjaxStreamError with Product with Serializable
- final case class AjaxStatusError(xhr: XMLHttpRequest, status: Int, message: String) extends AjaxStreamError with Product with Serializable
- sealed abstract class AjaxStreamError extends Exception
A more detailed version of dom.ext.AjaxException (no relation)
- final case class AjaxTimeout(xhr: XMLHttpRequest) extends AjaxStreamError with Product with Serializable
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def defaultIsStatusCodeSuccess(status: Int): Boolean
- 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
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- 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
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- 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.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- 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
- 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
- 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
- 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.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated