execute

abstract suspend fun execute(data: HttpRequestData): HttpResponseData

Executes an HTTP request and produces an HTTP response.

This function takes HttpRequestData, which contains all details of the HTTP request, and returns HttpResponseData with the server's response, including headers, status code, and body.

Return

An HttpResponseData object containing the server's response.

Parameters

data

The HttpRequestData representing the request to be executed.