kvision / pl.treksoft.kvision.remote / CallAgent / remoteCall

remoteCall

(js) fun remoteCall(url: String, data: dynamic = null, method: HttpMethod = HttpMethod.GET, contentType: String = "application/json", beforeSend: ((JQueryXHR, JQueryAjaxSettings) -> Boolean)? = null): Promise<dynamic>

Makes a remote call to the remote server.

Parameters

url - an URL address

data - data to be sent

method - a HTTP method

contentType - a content type of the request

beforeSend - a function to set request parameters

Return
a promise of the result