class DefaultHttpResponse : HttpResponse |
|
class HttpReceivePipeline : Pipeline<HttpResponse, HttpClientCall>
HttpClient Pipeline used for receiving HttpResponse without any processing. |
|
abstract class HttpResponse : HttpMessage, CoroutineScope
A response for HttpClient, second part of HttpClientCall. |
|
data class HttpResponseContainer
Class representing a typed response with an attached expectedType. |
|
class HttpResponsePipeline : Pipeline<HttpResponseContainer, HttpClientCall>
HttpClient Pipeline used for executing HttpResponse. |
|
class HttpStatement
Prepared statement for http client request. This statement doesn't perform any network requests until execute method call. |
val HttpResponse.request: HttpRequest
HttpRequest associated with this response. |
suspend fun HttpResponse.bodyAsChannel(): ByteReadChannel
Read the HttpResponse.content as a ByteReadChannel. |
|
suspend fun HttpResponse.bodyAsText(fallbackCharset: <ERROR CLASS> = Charsets.UTF_8): String
Read the HttpResponse.content as a String. You can pass an optional charset to specify a charset in the case no one is specified as part of the Content-Type response. If no charset specified either as parameter or as part of the response, io.ktor.client.features.HttpPlainText settings will be used. |
|
suspend fun HttpResponse.discardRemaining(): Unit
Efficiently discards the remaining bytes of HttpResponse.content. |
|
suspend fun HttpResponse.readBytes(count: Int): ByteArray
Exactly reads count bytes of the HttpResponse.content. suspend fun HttpResponse.readBytes(): ByteArray
Reads the whole HttpResponse.content if Content-Length was specified. Otherwise it just reads one byte. |
|
suspend fun HttpResponse.
Read the HttpResponse.content as a String. You can pass an optional charset to specify a charset in the case no one is specified as part of the Content-Type response. If no charset specified either as parameter or as part of the response, io.ktor.client.features.HttpPlainText settings will be used. |
|
suspend fun <T> HttpStatement.
Executes this statement and run HttpClient.responsePipeline with the response and expected type T. suspend fun <T, R> HttpStatement.
Executes this statement and run the block with a HttpClient.responsePipeline execution result. |