remoteCall
fun remoteCall(url: String, data: dynamic = null, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", responseBodyType: ResponseBodyType = ResponseBodyType.JSON, requestFilter: suspend RequestInit.() -> Unit? = null): Promise<dynamic>(source)
Makes a remote call to the remote server.
Return
a promise of the result
Parameters
url
an URL address
data
data to be sent
method
a HTTP method
contentType
a content type of the request
responseBodyType
response body type
requestFilter
a request filtering function