wrap

Deprecated

Use 'replaceResponse' instead.

Replace with

import io.ktor.client.call.replaceResponse
replaceResponse(headers) { content }

Wrap existing HttpClientCall with new response content and headers.

Warning: The content of the returned call response is non-replayable, so it can be consumed only once. Consider using replaceResponse instead.

Report a problem