Package io.ktor.client.features.observer

Types

Link copied to clipboard
typealias ResponseHandler = suspend (HttpResponse) -> Unit
Link copied to clipboard
class ResponseObserver(responseHandler: ResponseHandler)

Observe response feature.

Functions

Link copied to clipboard
fun HttpClientConfig<*>.ResponseObserver(block: ResponseHandler)

Install ResponseObserver feature in client.

Link copied to clipboard
fun HttpClientCall.wrapWithContent(content: ByteReadChannel): HttpClientCall
fun HttpClientCall.wrapWithContent(content: ByteReadChannel, shouldCloseOrigin: Boolean): HttpClientCall

Wrap existing HttpClientCall with new content.