File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
src/main/scala/org/scalajs/dom/ext Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import org.scalajs.dom.{Blob, FormData}
16
16
* Thrown when `Ajax.get` or `Ajax.post` receives a non-20X response code.
17
17
* Contains the XMLHttpRequest that resulted in that response
18
18
*/
19
+ @ deprecated(" use the dom.fetch API instead" , " 2.0.0" )
19
20
case class AjaxException (xhr : dom.XMLHttpRequest ) extends Exception {
20
21
def isTimeout = xhr.status == 0 && xhr.readyState == 4
21
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
25
26
* an Ajax call, returning a Future.
26
27
*/
28
+ @ deprecated(" use the dom.fetch API instead" , " 2.0.0" )
27
29
object Ajax {
28
30
29
31
/**
You can’t perform that action at this time.
0 commit comments