execute

abstract suspend fun execute(request: HttpRequest): Result<HttpResponse>(source)

Sends request and returns the response, or the failure.

Return

the response for any status in 100..599, or a failure holding an HttpFailure (normally a TransportFailure; HttpFailure.Closed after close). Cancellation is thrown, never returned.

Parameters

request

the request to send.