Package io.ktor.client.features.observer

Types

ResponseObserver

class ResponseObserver

Observe response feature.

Type Aliases

ResponseHandler

typealias ResponseHandler = suspend (HttpResponse) -> Unit

ResponseObserver callback.

Functions

ResponseObserver

fun HttpClientConfig<*>.ResponseObserver(
    block: ResponseHandler
): Unit

Install ResponseObserver feature in client.

wrapWithContent

fun HttpClientCall.wrapWithContent(
    content: ByteReadChannel,
    shouldCloseOrigin: Boolean
): HttpClientCall
fun HttpClientCall.wrapWithContent(
    content: ByteReadChannel
): HttpClientCall

Wrap existing HttpClientCall with new content.