req

suspend fun req(url: String, request: HttpRequest.Builder.() -> Unit = { GET() }): HttpResponse<String>

Sends an HTTP request using the HTTP Client.

Return

An HTTP Response.

Parameters

url

The URL to send the request to.

request

The builder modifier on the HTTP Request.