callDynamic

fun RestClient.callDynamic(url: String, block: RestRequestConfig<dynamic, dynamic>.() -> Unit = {}): <Error class: unknown class><dynamic>

Makes a http request to the server, returning data directly.

Return

a promise of the data

Parameters

url

an URL address

block

an optional block for configuring the request


inline fun <V : Any> RestClient.callDynamic(url: String, data: V, crossinline block: RestRequestConfig<dynamic, V>.() -> Unit = {}): <Error class: unknown class><dynamic>

Makes a http request to the server, returning data directly.

Return

a promise of the data

Parameters

url

an URL address

data

data to send

block

an optional block for configuring the request