requestDynamic

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

Makes a http request to the server, returning the response object.

Return

a promise of the data

Parameters

url

an URL address

block

an optional block for configuring the request


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

Makes a http request to the server, returning the response object.

Return

a promise of the data

Parameters

url

an URL address

data

data to send

block

an optional block for configuring the request