response

abstract suspend fun response(request: Request): Response

Execute a request and return the server's response.

Return

Response returned from the executed request.

Parameters

request

Request used to generate the response.


inline suspend fun response(method: Method, pathTemplate: String, pathParameters: Parameters? = null, queryParameters: Parameters? = null, contentTypes: List<MediaType>? = null, acceptTypes: List<MediaType>? = null, headers: Parameters? = null): Response
inline suspend fun <B : Any> response(method: Method, pathTemplate: String, pathParameters: Parameters? = null, queryParameters: Parameters? = null, body: B? = null, contentTypes: List<MediaType>? = null, acceptTypes: List<MediaType>? = null, headers: Parameters? = null): Response

Create and execute a request created from the given request parameters and return the server's response.

Return

Response returned from the generated request.