request
inline suspend fun <reified T> HttpClient.request(
builder: HttpRequestBuilder = HttpRequestBuilder()
): T
Executes a HttpClient request, with the information from the builder and tries to receive a specific type T, if fails, an exception is thrown.
inline suspend fun <reified T> HttpClient.request(
block: HttpRequestBuilder.() -> Unit
): T
Executes a HttpClient request, with the information configured in builder block and tries to receive a specific type T, if fails, an exception is thrown.
inline suspend fun <reified T> HttpClient.request(
urlString: String,
block: HttpRequestBuilder.() -> Unit = {}
): T
Executes a HttpClient request, with the urlString and the information configured in builder block and tries to receive a specific type T, if fails, an exception is thrown.
inline suspend fun <reified T> HttpClient.request(
url: Url,
block: HttpRequestBuilder.() -> Unit = {}
): T
Executes a HttpClient request, with the url and the information configured in builder block and tries to receive a specific type T, if fails, an exception is thrown.
fun request(
block: HttpRequestBuilder.() -> Unit
): HttpRequestBuilder
Creates a HttpRequestBuilder and configures it with a block of code.
inline suspend fun <reified T> HttpClient.request(
url: URL,
block: HttpRequestBuilder.() -> Unit = {}
): T
Executes a HttpClient request, with the specified url as URL and an optional block receiving an HttpRequestBuilder for further configuring the request.
Tries to receive a specific type T, if fails, an exception is thrown.