From 8883419bfcec00947863741d48dbd89cc877615a Mon Sep 17 00:00:00 2001
From: Robert Jaros beforeSend - a content type of the request
Return
a promise of the result
fun <T : Any> remoteCall(url: String, data: dynamic = null, deserializer: DeserializationStrategy<T>, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null, transform: (dynamic) -> dynamic = null): Promise<T>
-Makes a remote call to the remote server.
-
-deserializer - a deserializer for the result value
-contentType - a content type of the request
-beforeSend - a content type of the request
-transform - a function to transform the result of the call
Return
-a promise of the result
fun <V : Any> remoteCall(url: String, serializer: SerializationStrategy<V>, data: V, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null): Promise<dynamic>
-Makes a remote call to the remote server.
-
-contentType - a content type of the request
-beforeSend - a content type of the request
Return
-a promise of the result
fun <T : Any, V : Any> remoteCall(url: String, serializer: SerializationStrategy<V>, data: V, deserializer: DeserializationStrategy<T>, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean = null, transform: (dynamic) -> dynamic = null): Promise<T>
-Makes a remote call to the remote server.
-
-deserializer - a deserializer for the result value
-contentType - a content type of the request
-beforeSend - a content type of the request
-transform - a function to transform the result of the call
Return
-a promise of the result