callDynamic

suspend fun RestClient.callDynamic(url: String, block: RestRequestConfig<JsAny, JsAny>.() -> Unit = {}): JsAny?

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

Return

the data

Parameters

url

a URL address

block

an optional block for configuring the request


inline suspend fun <V : Any> RestClient.callDynamic(url: String, data: V, crossinline block: RestRequestConfig<JsAny, V>.() -> Unit = {}): JsAny?

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

Return

the data

Parameters

url

a URL address

data

data to send

block

an optional block for configuring the request