Package-level declarations

Types

Link copied to clipboard
typealias ResponseHandler = suspend (HttpResponse) -> Unit
Link copied to clipboard

Properties

Link copied to clipboard

Functions

Link copied to clipboard

Install ResponseObserver plugin in client.

Link copied to clipboard
fun HttpClientCall.wrap(content: ByteReadChannel, headers: Headers): HttpClientCall

Wrap existing HttpClientCall with new response content and headers.

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

Wrap existing HttpClientCall with new content.

fun HttpClientCall.wrapWithContent(block: () -> ByteReadChannel): HttpClientCall

Wrap existing HttpClientCall with new content produced by the given block. The block will be called each time the response content is requested.