CallAgent

open class CallAgent

An agent responsible for remote calls.

Constructors

Link copied to clipboard
fun CallAgent()

Functions

Link copied to clipboard
fun jsonRpcCall(url: String, data: List<String?> = listOf(), method: <ERROR CLASS> = HttpMethod.POST, requestFilter: <ERROR CLASS>.() -> Unit? = null): <ERROR CLASS><String>

Makes an JSON-RPC call to the remote server.

Link copied to clipboard
fun remoteCall(url: String, data: dynamic = null, method: <ERROR CLASS> = HttpMethod.GET, contentType: String = "application/json", responseBodyType: ResponseBodyType = ResponseBodyType.JSON, requestFilter: <ERROR CLASS>.() -> Unit? = null): <ERROR CLASS><dynamic>

Makes a remote call to the remote server.