fun remoteRequest( 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><Response<dynamic
>> Makes a remote call to the remote server.
Return
a promise of the response
Parameters
a content type of the request
a function to set request parameters
fun <T : Any> remoteRequest( 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><Response<T>> Makes a remote call to the remote server.
Return
a promise of the response
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> remoteRequest( 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><Response<dynamic
>> Makes a remote call to the remote server.
Return
a promise of the response
Parameters
a content type of the request
a function to set request parameters
fun <T : Any, V : Any> remoteRequest( 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><Response<T>> Makes a remote call to the remote server.
Return
a promise of the response
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