Ajax
@deprecated("scalajs-dom no longer includes custom utilities, only facades. Try using dom.fetch API which doesn\'t require additional utilities.", "2.0.0")
object Ajax
Wraps an XMLHttpRequest to provide an easy one-line way of making an Ajax call, returning a Future.
- Deprecated
Type members
Value members
Concrete methods
def apply(method: String, url: String, data: InputData, timeout: Int, headers: Map[String, String], withCredentials: Boolean, responseType: String): Future[XMLHttpRequest]
def delete(url: String, data: InputData, timeout: Int, headers: Map[String, String], withCredentials: Boolean, responseType: String): Future[XMLHttpRequest]
def get(url: String, data: InputData, timeout: Int, headers: Map[String, String], withCredentials: Boolean, responseType: String): Future[XMLHttpRequest]
def patch(url: String, data: InputData, timeout: Int, headers: Map[String, String], withCredentials: Boolean, responseType: String): Future[XMLHttpRequest]
def post(url: String, data: InputData, timeout: Int, headers: Map[String, String], withCredentials: Boolean, responseType: String): Future[XMLHttpRequest]
def put(url: String, data: InputData, timeout: Int, headers: Map[String, String], withCredentials: Boolean, responseType: String): Future[XMLHttpRequest]