Package io.ktor.client.response
Types
class DefaultHttpResponse : HttpResponse Default HttpResponse implementation. |
|
class HttpReceivePipeline : HttpClient Pipeline used for receiving HttpResponse without any processing. |
|
abstract class HttpResponse : A response for HttpClient, second part of HttpClientCall. |
|
open class HttpResponseConfig |
|
data class HttpResponseContainer Class representing a typed response with an attached expectedType. |
|
class HttpResponsePipeline : HttpClient Pipeline used for executing HttpResponse. |
Functions
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.readText( 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, HttpResponseConfig.defaultCharset will be used. |