Package-level declarations

Types

Link copied to clipboard

Exception representing that the response payload has already been received.

Link copied to clipboard
open class HttpClientCall(val client: HttpClient) : CoroutineScope

A pair of a request and response for a specific HttpClient.

Link copied to clipboard

Exception representing the no transformation was found. It includes the received type and the expected type as part of the message.

Link copied to clipboard

Exception representing fail of the response pipeline cause contains origin pipeline exception

Functions

Link copied to clipboard
inline suspend fun <T> HttpClientCall.body(): T
inline suspend fun <T> HttpResponse.body(): T

Tries to receive the payload of the response as a specific type T.

suspend fun <T> HttpResponse.body(typeInfo: TypeInfo): T

Tries to receive the payload of the response as a specific type T described in typeInfo.

Link copied to clipboard
inline suspend fun <T> HttpClientCall.receive(): T
inline suspend fun <T> HttpResponse.receive(): T

Tries to receive the payload of the response as a specific type T.

suspend fun HttpClientCall.receive(info: TypeInfo): Any

Tries to receive the payload of the response as a specific expected type provided in info. Returns response if info corresponds to HttpResponse.

Link copied to clipboard

Fetch data for HttpClientCall and close the origin.