LegacyRestClient

open class LegacyRestClient(module: <ERROR CLASS>? = null)

An agent responsible for remote calls.

Constructors

Link copied to clipboard
fun LegacyRestClient(module: <ERROR CLASS>? = null)

Functions

Link copied to clipboard
inline fun <V : Any> call(    url: String,     data: V,     method: HttpMethod = HttpMethod.GET,     contentType: String = "application/json",     noinline beforeSend: (<ERROR CLASS>, <ERROR CLASS>) -> Boolean? = null): <ERROR CLASS><dynamic>
inline fun <T : Any, V : Any> call(    url: String,     data: V,     deserializer: <ERROR CLASS><T>,     method: HttpMethod = HttpMethod.GET,     contentType: String = "application/json",     noinline beforeSend: (<ERROR CLASS>, <ERROR CLASS>) -> Boolean? = null,     noinline transform: (dynamic) -> dynamic? = null): <ERROR CLASS><T>

Helper inline function to automatically get serializer for the data.

inline fun <T : Any, V : Any> call(    url: String,     data: V,     method: HttpMethod = HttpMethod.GET,     contentType: String = "application/json",     noinline beforeSend: (<ERROR CLASS>, <ERROR CLASS>) -> Boolean? = null,     noinline transform: (dynamic) -> dynamic? = null): <ERROR CLASS><T>

Helper inline function to automatically get serializer for the data and deserializer for the result value.

inline fun <T : Any> call(    url: String,     data: dynamic = null,     method: HttpMethod = HttpMethod.GET,     contentType: String = "application/json",     noinline beforeSend: (<ERROR CLASS>, <ERROR CLASS>) -> Boolean? = null,     noinline transform: (dynamic) -> dynamic? = null): <ERROR CLASS><T>

Helper inline function to automatically get deserializer for the result value with dynamic data.

inline fun <T : Any, V : Any> call(    url: String,     serializer: <ERROR CLASS><V>,     data: V,     method: HttpMethod = HttpMethod.GET,     contentType: String = "application/json",     noinline beforeSend: (<ERROR CLASS>, <ERROR CLASS>) -> Boolean? = null,     noinline transform: (dynamic) -> dynamic? = null): <ERROR CLASS><T>

Helper inline function to automatically deserializer for the result value with typed data.

Link copied to clipboard
fun remoteCall(    url: String,     data: dynamic = null,     method: HttpMethod = HttpMethod.GET,     contentType: String = "application/json",     beforeSend: (<ERROR CLASS>, <ERROR CLASS>) -> Boolean? = null): <ERROR CLASS><dynamic>
fun <V : Any> remoteCall(    url: String,     serializer: <ERROR CLASS><V>,     data: V,     method: HttpMethod = HttpMethod.GET,     contentType: String = "application/json",     beforeSend: (<ERROR CLASS>, <ERROR CLASS>) -> Boolean? = null): <ERROR CLASS><dynamic>
fun <T : Any> remoteCall(    url: String,     data: dynamic = null,     deserializer: <ERROR CLASS><T>,     method: HttpMethod = HttpMethod.GET,     contentType: String = "application/json",     beforeSend: (<ERROR CLASS>, <ERROR CLASS>) -> Boolean? = null,     transform: (dynamic) -> dynamic? = null): <ERROR CLASS><T>
fun <T : Any, V : Any> remoteCall(    url: String,     serializer: <ERROR CLASS><V>,     data: V,     deserializer: <ERROR CLASS><T>,     method: HttpMethod = HttpMethod.GET,     contentType: String = "application/json",     beforeSend: (<ERROR CLASS>, <ERROR CLASS>) -> Boolean? = null,     transform: (dynamic) -> dynamic? = null): <ERROR CLASS><T>

Makes a remote call to the remote server.

Link copied to clipboard
fun remoteRequest(    url: String,     data: dynamic = null,     method: HttpMethod = HttpMethod.GET,     contentType: String = "application/json",     beforeSend: (<ERROR CLASS>, <ERROR CLASS>) -> Boolean? = null): <ERROR CLASS><Response<dynamic>>
fun <V : Any> remoteRequest(    url: String,     serializer: <ERROR CLASS><V>,     data: V,     method: HttpMethod = HttpMethod.GET,     contentType: String = "application/json",     beforeSend: (<ERROR CLASS>, <ERROR CLASS>) -> Boolean? = null): <ERROR CLASS><Response<dynamic>>
fun <T : Any> remoteRequest(    url: String,     data: dynamic = null,     deserializer: <ERROR CLASS><T>,     method: HttpMethod = HttpMethod.GET,     contentType: String = "application/json",     beforeSend: (<ERROR CLASS>, <ERROR CLASS>) -> Boolean? = null,     transform: (dynamic) -> dynamic? = null): <ERROR CLASS><Response<T>>
fun <T : Any, V : Any> remoteRequest(    url: String,     serializer: <ERROR CLASS><V>,     data: V,     deserializer: <ERROR CLASS><T>,     method: HttpMethod = HttpMethod.GET,     contentType: String = "application/json",     beforeSend: (<ERROR CLASS>, <ERROR CLASS>) -> Boolean? = null,     transform: (dynamic) -> dynamic? = null): <ERROR CLASS><Response<T>>

Makes a remote call to the remote server.

Link copied to clipboard
inline fun <V : Any> request(    url: String,     data: V,     method: HttpMethod = HttpMethod.GET,     contentType: String = "application/json",     noinline beforeSend: (<ERROR CLASS>, <ERROR CLASS>) -> Boolean? = null): <ERROR CLASS><Response<dynamic>>
inline fun <T : Any, V : Any> request(    url: String,     data: V,     deserializer: <ERROR CLASS><T>,     method: HttpMethod = HttpMethod.GET,     contentType: String = "application/json",     noinline beforeSend: (<ERROR CLASS>, <ERROR CLASS>) -> Boolean? = null,     noinline transform: (dynamic) -> dynamic? = null): <ERROR CLASS><Response<T>>

Helper inline function to automatically get serializer for the data.

inline fun <T : Any, V : Any> request(    url: String,     data: V,     method: HttpMethod = HttpMethod.GET,     contentType: String = "application/json",     noinline beforeSend: (<ERROR CLASS>, <ERROR CLASS>) -> Boolean? = null,     noinline transform: (dynamic) -> dynamic? = null): <ERROR CLASS><Response<T>>

Helper inline function to automatically get serializer for the data and deserializer for the result value.

inline fun <T : Any> request(    url: String,     data: dynamic = null,     method: HttpMethod = HttpMethod.GET,     contentType: String = "application/json",     noinline beforeSend: (<ERROR CLASS>, <ERROR CLASS>) -> Boolean? = null,     noinline transform: (dynamic) -> dynamic? = null): <ERROR CLASS><Response<T>>

Helper inline function to automatically get deserializer for the result value with dynamic data.

inline fun <T : Any, V : Any> request(    url: String,     serializer: <ERROR CLASS><V>,     data: V,     method: HttpMethod = HttpMethod.GET,     contentType: String = "application/json",     noinline beforeSend: (<ERROR CLASS>, <ERROR CLASS>) -> Boolean? = null,     noinline transform: (dynamic) -> dynamic? = null): <ERROR CLASS><Response<T>>

Helper inline function to automatically deserializer for the result value with typed data.