receive

suspend fun <T : Any, V : Any> receive(url: String, block: RestRequestConfig<T, V>.() -> Unit = {}): RestResponse<T>

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

Return

the response object

Parameters

url

a URL address

block

an optional block for configuring the request