fun remoteCall( url: String, data: dynamic = null, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", beforeSend: (<Error class: unknown class>, <Error class: unknown class>) -> Boolean? = null): <Error class: unknown class><dynamic
> Makes a remote call to the remote server.
Return
a promise of the result
Parameters
a content type of the request
a function to set request parameters
fun <T : Any> remoteCall( url: String, data: dynamic = null, deserializer: <Error class: unknown class><T>, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", beforeSend: (<Error class: unknown class>, <Error class: unknown class>) -> Boolean? = null, transform: (dynamic) -> dynamic? = null): <Error class: unknown class><T> Makes a remote call to the remote server.
Return
a promise of the result
Parameters
a deserializer for the result value
a content type of the request
a function to set request parameters
a function to transform the result of the call
fun <V : Any> remoteCall( url: String, serializer: <Error class: unknown class><V>, data: V, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", beforeSend: (<Error class: unknown class>, <Error class: unknown class>) -> Boolean? = null): <Error class: unknown class><dynamic
> Makes a remote call to the remote server.
Return
a promise of the result
Parameters
a content type of the request
a function to set request parameters
fun <T : Any, V : Any> remoteCall( url: String, serializer: <Error class: unknown class><V>, data: V, deserializer: <Error class: unknown class><T>, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", beforeSend: (<Error class: unknown class>, <Error class: unknown class>) -> Boolean? = null, transform: (dynamic) -> dynamic? = null): <Error class: unknown class><T> Makes a remote call to the remote server.
Return
a promise of the result
Parameters
a deserializer for the result value
a content type of the request
a function to set request parameters
a function to transform the result of the call