wrapWithContent
Deprecated
Use 'replaceResponse' instead.
Replace with
import io.ktor.client.call.replaceResponse
Content copied to clipboard
replaceResponse { content }
Content copied to clipboard
Wrap existing HttpClientCall with new content.
Warning: The content of the returned call response is non-replayable, so it can be consumed only once. Consider using replaceResponse
instead.
Deprecated
Use 'replaceResponse' instead.
Replace with
import io.ktor.client.call.replaceResponse
Content copied to clipboard
replaceResponse { block() }
Content copied to clipboard
Wrap existing HttpClientCall with new content produced by the given block. The block will be called each time the response content is requested.