Package io.ktor.client.plugins.observer

Types

Link copied to clipboard
typealias ResponseHandler = suspend (HttpResponse) -> Unit
Link copied to clipboard
class ResponseObserver(responseHandler: ResponseHandler, filter: (HttpClientCall) -> Boolean?)

Observe response plugin.

Functions

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

Install ResponseObserver plugin 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.