Legacy Rest Client
An agent responsible for remote calls.
Constructors
LegacyRestClient
Link copied to clipboard
Functions
call
Link copied to clipboard
inline fun <T : Any> call(url: String, data: dynamic = null, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", noinline beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean? = null, noinline transform: (dynamic) -> dynamic? = null): Promise<T>
Content copied to clipboard
inline fun <T : Any, V : Any> call(url: String, data: V, deserializer: DeserializationStrategy<T>, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", noinline beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean? = null, noinline transform: (dynamic) -> dynamic? = null): Promise<T>
Content copied to clipboard
inline fun <T : Any, V : Any> call(url: String, serializer: SerializationStrategy<V>, data: V, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", noinline beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean? = null, noinline transform: (dynamic) -> dynamic? = null): Promise<T>
Content copied to clipboard
remoteCall
Link copied to clipboard
fun remoteCall(url: String, data: dynamic = null, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean? = null): Promise<dynamic>
Content copied to clipboard
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>
Content copied to clipboard
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>
Content copied to clipboard
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>
Content copied to clipboard
remoteRequest
Link copied to clipboard
fun remoteRequest(url: String, data: dynamic = null, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean? = null): Promise<Response<dynamic>>
Content copied to clipboard
fun <T : Any> remoteRequest(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<Response<T>>
Content copied to clipboard
fun <T : Any, V : Any> remoteRequest(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<Response<T>>
Content copied to clipboard
request
Link copied to clipboard
inline fun <T : Any, V : Any> request(url: String, data: V, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", noinline beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean? = null, noinline transform: (dynamic) -> dynamic? = null): Promise<Response<T>>
Content copied to clipboard
inline fun <T : Any> request(url: String, data: dynamic = null, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", noinline beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean? = null, noinline transform: (dynamic) -> dynamic? = null): Promise<Response<T>>
Content copied to clipboard
inline fun <T : Any, V : Any> request(url: String, data: V, deserializer: DeserializationStrategy<T>, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", noinline beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean? = null, noinline transform: (dynamic) -> dynamic? = null): Promise<Response<T>>
Content copied to clipboard
inline fun <T : Any, V : Any> request(url: String, serializer: SerializationStrategy<V>, data: V, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", noinline beforeSend: (JQueryXHR, JQueryAjaxSettings) -> Boolean? = null, noinline transform: (dynamic) -> dynamic? = null): Promise<Response<T>>
Content copied to clipboard