execute

suspend fun execute(): Response

Executes a synchronous HTTP request, downloading the entire response body at once.

The HTTP method, URL, and options for the request are taken from the properties of this Request instance.

Return

A Response object containing the response from the server.

Throws

If there is an error with the request, a HttpException is thrown.