callDynamic

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

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 = {}): Promise<dynamic>(source)

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