Package io.ktor.client.call
Types
open class HttpClientCall : CoroutineScope, Closeable A class that represents a single pair of request and response for a specific HttpClient. |
|
data class Raw http call produced by engine. |
|
expect interface Type Information about type. |
|
data class TypeInfo Ktor type information. |
Exceptions
class DoubleReceiveException : IllegalStateException Exception representing that the response payload has already been received. |
|
class NoTransformationFoundException : Exception representing the no transformation was found. It includes the received type and the expected type as part of the message. |
|
class ReceivePipelineException : IllegalStateException Exception representing fail of the response pipeline cause contains origin pipeline exception |
|
class UnsupportedContentTypeException : IllegalStateException |
|
class UnsupportedUpgradeProtocolException : |
Functions
suspend fun HttpClient.call( Constructs a HttpClientCall from this HttpClient and with the specified HttpRequestBuilder configured inside the block. suspend fun HttpClient.call( Constructs a HttpClientCall from this HttpClient and with the specified HTTP request builder. suspend fun HttpClient.call( suspend fun HttpClient.call( suspend fun HttpClient.call( Constructs a HttpClientCall from this HttpClient, an url and an optional block configuring a HttpRequestBuilder. |
|
suspend fun <T> HttpClientCall.receive(): T suspend fun <T> HttpResponse.receive(): T Tries to receive the payload of the response as an specific type T. |
|
suspend fun HttpClientCall.save(): HttpClientCall Fetch data for HttpClientCall and close the origin. |
|
expect fun <T> typeInfo(): TypeInfo |