postDynamic

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

Makes a http POST 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