We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 413f006 commit ac88039Copy full SHA for ac88039
src/main/scala/org/scalajs/dom/ext/Extensions.scala
@@ -16,6 +16,7 @@ import org.scalajs.dom.{Blob, FormData}
16
* Thrown when `Ajax.get` or `Ajax.post` receives a non-20X response code.
17
* Contains the XMLHttpRequest that resulted in that response
18
*/
19
+@deprecated("use the dom.fetch API instead", "2.0.0")
20
case class AjaxException(xhr: dom.XMLHttpRequest) extends Exception {
21
def isTimeout = xhr.status == 0 && xhr.readyState == 4
22
}
@@ -24,6 +25,7 @@ case class AjaxException(xhr: dom.XMLHttpRequest) extends Exception {
24
25
* Wraps an XMLHttpRequest to provide an easy one-line way of making
26
* an Ajax call, returning a Future.
27
28
29
object Ajax {
30
31
/**
0 commit comments